Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

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