ccproxy.plugins.copilot.oauth.models¶
ccproxy.plugins.copilot.oauth.models
¶
GitHub Copilot-specific authentication models.
CopilotOAuthToken
¶
CopilotTokenResponse
¶
Bases: BaseModel
Copilot token exchange response.
serialize_secret
¶
serialize_datetime
¶
Serialize datetime back to Unix timestamp.
validate_token
classmethod
¶
Convert string values to SecretStr.
validate_expires_at
classmethod
¶
Convert integer Unix timestamp or ISO string to datetime object.
Source code in ccproxy/plugins/copilot/oauth/models.py
CopilotCredentials
¶
CopilotProfileInfo
¶
CopilotTokenInfo
¶
Bases: BaseTokenInfo
Token information for Copilot credentials.
computed_is_expired
¶
Check if any token is expired.