Expand description
OAuth2 token endpoint operations: authorization-code exchange (with
PKCE verifier) and refresh-token rotation.
Structs§
- Token
Response - Parsed response from an
OAuth2token endpoint. - Token
Set - Outcome of a completed token request, with access-token expiry computed in unix milliseconds.
Enums§
- Token
Error - Errors from token endpoint operations.
Functions§
- exchange_
code - Exchanges an authorization code for tokens (PKCE verifier required).
- refresh
- Refreshes an access token with a stored refresh token.
- refresh_
access_ token - Refreshes an access token and returns the raw
TokenResponse(rotation-aware: callers readrefresh_tokenoff the response).