Skip to content

GetDerivedTokenResponse

Source code in docs_src/capo_cognito_identity_provider/types/get_derived_token_response.py
class GetDerivedTokenResponse(TypedDict, closed=True):
    issued_token: "capo_cognito_identity_provider.types.token_model_type.TokenModelType"
    """<p>The token that Amazon Cognito issued in response to the token exchange request.</p>"""
    issued_token_type: "capo_cognito_identity_provider.types.issued_token_type_identifier_type.IssuedTokenTypeIdentifierType"
    """<p>The type of the token in the <code>IssuedToken</code> parameter. Valid values:</p> <ul> <li> <p> <code>ACCESS_TOKEN</code> – The issued token is an access token.</p> </li> <li> <p> <code>ID_TOKEN</code> – The issued token is an ID token.</p> </li> </ul>"""
    token_type: (
        "capo_cognito_identity_provider.types.o_auth_token_type_type.OAuthTokenTypeType"
    )
    """<p>The type of the issued token. For example, <code>Bearer</code>.</p>"""
    expires_in: "capo_cognito_identity_provider.types.integer_type.IntegerType"
    """<p>The number of seconds until the issued token expires.</p>"""
    scopes: NotRequired[
        "capo_cognito_identity_provider.types.scope_list_type.ScopeListType"
    ]
    """<p>The scopes that Amazon Cognito granted in the issued token.</p>"""

expires_in instance-attribute

expires_in: IntegerType

The number of seconds until the issued token expires.

issued_token instance-attribute

issued_token: TokenModelType

The token that Amazon Cognito issued in response to the token exchange request.

issued_token_type instance-attribute

issued_token_type: IssuedTokenTypeIdentifierType

The type of the token in the IssuedToken parameter. Valid values:

  • ACCESS_TOKEN – The issued token is an access token.

  • ID_TOKEN – The issued token is an ID token.

scopes instance-attribute

scopes: NotRequired[ScopeListType]

The scopes that Amazon Cognito granted in the issued token.

token_type instance-attribute

token_type: OAuthTokenTypeType

The type of the issued token. For example, Bearer.