Access Token#
- pydantic model AccessToken[source]#
Represents an access token for authentication.
The
AccessToken
class encapsulates the access token string and its expiration time. It provides methods to check the token’s expiration status and the time remaining before it expires.- Parameters:
token (AnyStr) – The access token string used for authentication.
expires (datetime) – The expiration datetime of the token. The default is set to January 1, 1970.