Retrieve OAuth2 provider tokens from callback
GET /signin/provider/{provider}/callback/tokens
After successful OAuth2 authentication, retrieve the provider session containing access token, refresh token, and expiration information for the specified provider. To ensure the data isn’t stale this endpoint must be called immediately after the OAuth callback to obtain the tokens. The session is cleared from the database during this call, so subsequent calls will fail without going through the sign-in flow again. It is the user’s responsibility to store the session safely (e.g., in browser local storage).
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”The name of the social provider
Responses
Section titled “ Responses ”Successfully retrieved provider session
OAuth2 provider session containing access and refresh tokens
object
OAuth2 provider access token for API calls
Example
ya29.a0AfH6SMBx...Number of seconds until the access token expires
Example
3599Timestamp when the access token expires
Example
2024-12-31T23:59:59ZOAuth2 provider refresh token for obtaining new access tokens (if provided by the provider)
Example
1//0gK8...default
Section titled “default ”An error occurred while processing the request
Standardized error response
object
HTTP status error code
Example
400Human-friendly error message
Example
Invalid email formatError code identifying the specific application error