Return from a provider
GET
/api/v1/auth/callback
const url = 'http://localhost:8080/api/v1/auth/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 http://localhost:8080/api/v1/auth/callbackWhere providers send people back to after signing in; register
<CHEK_PUBLIC_URL>/api/v1/auth/callback as the redirect URI with each
provider. Apps don’t call it. It sends the browser on to the app’s
redirectUri.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”state
string
code
string
error
string
error_description
string
Responses
Section titled “Responses”Sent on to the app, with code, or error and error_description.
Headers
Section titled “Headers”Location
string
The request was malformed.
Media typeapplication/json
object
code
required
string
message
required
Explains the problem to a developer.
string
Example
{ "code": "bad_request"}