O Auth Provider Callback
OAuth2 callback.
OAuth2 callback.
/auth/oauth/{oauth_provider}/callbackIn: cookie
Path Parameters
The identifier for an OAuth2 provider such as "twitter".
Response Body
curl -X POST "https://loading/api/auth/oauth/twitter/callback" \ -H "Content-Type: application/json" \ -d '{ "state": "string", "code": "string" }'{
"id": "string"
}{
"error": "string",
"message": "string",
"suggested": "string",
"metadata": {}
}Auth Provider Logout GET GET
Performs a HTTP logout by clearing the session cookie and redirecting to to the requested path at the frontend's `WEB_ADDRESS`. Typically this may be a secondary logout route on the frontend implementation that can handle any frontend-specific logout tasks. This is necessary in cases where the frontend is running on a different origin to the API service such as api.site.com vs site.com because Clear-Site-Data and other headers are same-origin compliant and won't work cross-origin.
Phone Request Code POST POST
Start the authentication flow with a phone number. The handler will send a one-time code to the provided phone number which must then be sent to the other phone endpoint to verify the number and validate the account.