Skip to content

GetOAuthTokenResponse

Source code in docs_src/capo_credentialbroker/types/get_o_auth_token_response.py
class GetOAuthTokenResponse(TypedDict, closed=True):
    access_token: NotRequired["capo_credentialbroker.types.access_token.AccessToken"]
    """<p>The access token. Present it to the third-party API as a bearer credential.</p>"""
    expires_at: NotRequired["datetime.datetime"]
    """<p>When the access token expires. Absent when the authorization server does not report an expiry, in which case the token's lifetime is whatever that server applies.</p>"""
    session_status: NotRequired[
        "capo_credentialbroker.types.session_status.SessionStatus"
    ]
    """<p>Status of the consent session named in the request, so a repeated call can tell whether the user has finished granting consent.</p>"""

access_token instance-attribute

access_token: NotRequired[AccessToken]

The access token. Present it to the third-party API as a bearer credential.

expires_at instance-attribute

expires_at: NotRequired[datetime]

When the access token expires. Absent when the authorization server does not report an expiry, in which case the token's lifetime is whatever that server applies.

session_status instance-attribute

session_status: NotRequired[SessionStatus]

Status of the consent session named in the request, so a repeated call can tell whether the user has finished granting consent.