ccproxy.auth.models.base¶
ccproxy.auth.models.base
¶
Base models for authentication across all providers.
BaseTokenInfo
¶
Bases: BaseModel
Base model for token information across all providers.
This abstract base provides a common interface for token operations while allowing each provider to maintain its specific implementation.
expires_at_datetime
property
¶
Get expiration as datetime object. Must be implemented by provider-specific subclasses.
refresh_token_value
property
¶
Get refresh token if available. Default returns None, override if provider supports refresh.
access_token_value
¶
Get the actual access token string. Must be implemented by provider-specific subclasses.
is_expired
¶
Check if token is expired. Uses the expires_at_datetime property for comparison.