Extend Token Duration (POST)

This method allows you to extend the duration of a token, meaning the token will not expire after 30 days like a normal token. Instead, a new token will be generated with a different expiration date.

Implementation

Endpoint to query:

POST - <https://api.verifik.co/v2/auth/session>

Headers

You must provide a token that is still valid, meaning it can still be used to make queries.

{
		"Authorization": "<token>"
}

Query Parameters

Example of a complete request:

https://api.verifik.co/v2/auth/session?origin=refresh&expiresIn=120

Successful Response (Token with new expiration date generated)

{
  "accessToken": "string",
  "tokenType": "string"
}

Note: Verifik is not responsible for the handling of the Access Token. It is recommended to be very careful in determining who or what uses it to avoid potential consumption issues.

Expire and Renew Token (POST)

This service performs two actions when used:

  1. Expires all tokens that were previously generated using any of the other mentioned services.
  2. Creates an entirely new token. This token expires in 30 days, like a normal Verifik token.