Oauth Callback
Handle OAuth provider redirect after user authorization.
The provider redirects here with an authorization code and the state parameter we generated earlier. We exchange the code for tokens, persist them, and redirect the user to the frontend success page.
All parameters are optional because OAuth providers may redirect with only error parameters (no code/state) when the user denies access.
When the flow was initiated from chat (source="chat"), a standalone HTML page is returned instead of redirecting to the SPA, so users on SMS/iMessage see a "you can close this tab" message.
get/api/oauth/callback
Query parameters
codestring
statestring
realmIdstring
errorstring
error_descriptionstring
Response
Successful Response
{"stackTrail":"paths:/api/oauth/callback:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}