Auth
Represents authentication details required for API access.
Attributes:
Name | Type | Description |
---|---|---|
access_token |
str
|
The token used to authenticate API requests. |
scope |
str
|
The specific scope of access granted by the token. |
token_type |
str
|
The type of the token, defaulting to 'Bearer'. |
_expiry_time |
datetime
|
The datetime at which the token expires. |
is_expired()
Checks if the authentication token has expired.
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
Returns True if the token has expired, otherwise False. |