Skip to content

This handler receives the ?code=<>&state=<>, uses it to get an external oauth token, gets the user's information, creates a new local user if needed, and finally mints our own tokens.

GET
/api/auth/v1/oauth/{provider}/callback
curl --request GET \
--url 'https://example.com/api/auth/v1/oauth/example/callback?code=example&state=example'
provider
required
string
code
required
string
state
required
string

Redirect.