Share via


TokenResponse Class

A response that includes a user token.

Constructor

pydantic model TokenResponse

Parameters

Name Description
connection_name
Required
str

The connection name

token
Required
str

The user token

expiration
Required
str

Expiration for the token, in ISO 8601 format (e.g. "2007-04-05T14:30Z")

channel_id
Required
str

The channelId of the TokenResponse

Keyword-Only Parameters

Name Description
connectionName
Default value: None
token
Default value: None
expiration
Default value: None
channelId
Default value: None

Methods

is_exchangeable

Checks if a token is exchangeable (has api:// audience).

is_exchangeable

Checks if a token is exchangeable (has api:// audience).

is_exchangeable() -> bool

Parameters

Name Description
token
Required
str

The token to check.

Returns

Type Description

True if the token is exchangeable, False otherwise.

Attributes

channel_id

field channel_id: str = None (alias 'channelId')

connection_name

field connection_name: str = None (alias 'connectionName')

expiration

field expiration: str = None

token

field token: str = None