oauth_sessions
Classes
OAuthSessionModel
Bases: BaseModel
Model representing an OAuth session.
This model stores information about an active OAuth session, including the provider, tokens, and expiration details.
Returned by:
- Code Reference routers users Classes UsersClient Functions get_user_oauth_sessions_by_id
Attributes
token
The OAuth tokens.
Dict Fields
access_token(str, required): The access token for OAuth authenticationrefresh_token(str, optional): The refresh token for obtaining new access tokensid_token(str, optional): The ID token containing user identity informationexpires_at(int, optional): Timestamp when the token expires (epoch)expires_in(int, optional): Duration in seconds until token expiresissued_at(int, optional): Timestamp when the token was issued