Oauth Callback
GET
/auth/oauth/{provider_slug}/callback
const url = 'https://example.com/api/auth/oauth/example/callback';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/auth/oauth/example/callbackHandle IdP callback: exchange code, find/create user, issue JWT, redirect to frontend.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” provider_slug
required
Provider Slug
string
Responses
Section titled “ Responses ”Successful Response
Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}