Skip to main content

tokens_from_refresh_tokens

Creates, updates, deletes, gets or lists a tokens_from_refresh_tokens resource.

Overview

Nametokens_from_refresh_tokens
TypeResource
Idaws.cognito_idp.tokens_from_refresh_tokens

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
access_tokenstringYour user's access token. (pattern: <code>[A-Za-z0-9-_=.]+</code>)
expires_inintegerThe expiration period of the authentication result in seconds.
id_tokenstringYour user's ID token. (pattern: <code>[A-Za-z0-9-_=.]+</code>)
new_device_metadataobjectThe new device metadata from an authentication result.
refresh_tokenstringYour user's refresh token. (pattern: <code>[A-Za-z0-9-_=.]+</code>)
token_typestringThe intended use of the token, for example Bearer.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_tokens_from_refresh_tokenselectregionGiven a refresh token, issues new ID, access, and optionally refresh tokens for the user who owns the submitted token. This operation issues a new refresh token and invalidates the original refresh token after an optional grace period when refresh token rotation is enabled. If refresh token rotation is disabled, issues new ID and access tokens only.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Given a refresh token, issues new ID, access, and optionally refresh tokens for the user who owns the submitted token. This operation issues a new refresh token and invalidates the original refresh token after an optional grace period when refresh token rotation is enabled. If refresh token rotation is disabled, issues new ID and access tokens only.

SELECT
access_token,
expires_in,
id_token,
new_device_metadata,
refresh_token,
token_type
FROM aws.cognito_idp.tokens_from_refresh_tokens
WHERE region = '{{ region }}' -- required
;