Token refresh (v2.1.0)

Command that will create a new JWT for access and identity.

Overview

This command in the Authentication adapter, can be used to refresh the access and identity tokens for a User or Application. The refresh token is not renewed. The only way to get a new refresh token is to perform a new authentication.

When new tokens are generated after a refresh, it will not invalidate the old tokens. These are still valid untill they expire.

Architecture diagram

Payload example

Request

Payload example
{
"token": "eyJjdHkiOiJKV1QiLCJlbmMiOiJBMjU2R0NNIiwia2lkIjoiY2xvbmVkX2tleSIsImFsZyI6IkEyNTZHQ00ifQ.eyJzdWIiOiIxMjM0NTY3ODkwIiwiaXNzIjoiY29nbml0by5pZGVudGl0eSIsImV4cCI6MTYwOTQ5MjAwMCwiaWF0IjoxNjA5NDg4NDAwfQ.4VZ7K5y6y8z9A0B1C2D3E4F5G6H7I8J9K0L1M2N3O4P5Q6R7S8T9U0V1W2X3Y4Z5"
}

JSON Schema

1 property
tokenstring
required

Refresh token from AWS Cognito