refresh_token

refresh_token(**kwargs)

Refreshes a previously issued access token that might have expired.

See also: AWS API Documentation

Request Syntax

response = client.refresh_token(
    provider='figma',
    refreshTokenBody={
        'token': 'string'
    }
)
Parameters
  • provider (string) --

    [REQUIRED]

    The third-party provider for the token. The only valid value is figma .

  • refreshTokenBody (dict) --

    [REQUIRED]

    Information about the refresh token request.

    • token (string) -- [REQUIRED]

      The token to use to refresh a previously issued access token that might have expired.

Return type

dict

Returns

Response Syntax

{
    'accessToken': 'string',
    'expiresIn': 123
}

Response Structure

  • (dict) --

    • accessToken (string) --

      The access token.

    • expiresIn (integer) --

      The date and time when the new access token expires.

Exceptions

  • AmplifyUIBuilder.Client.exceptions.InvalidParameterException