Google's redirect back.
const url = 'https://example.com/api/user/v1/google/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/user/v1/google/callbackRedirects to the web app. A sign-in goes to /sign-in/complete?code=…&next=…
with a login code, valid for 2 minutes, for the auth service to
redeem; a link goes to /profile?google=linked. A failure goes to
/sign-in?google=<outcome>, or /profile?google=<outcome> when
linking, where the outcome is denied (the user said no at
Google), expired (start again), unverified (Google hasn’t
verified the address), taken (the Google account or its address
belongs to another account) or failed.
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Go there.
Headers
Section titled “Headers”No access token, or one that is invalid or expired.
An RFC 9457 problem.
object
Written for the user.
What is wrong with each field of the request.
object
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "request_id": "example", "errors": { "additionalProperty": "example" }}Headers
Section titled “Headers”Google sign-in isn’t set up on this server.
An RFC 9457 problem.
object
Written for the user.
What is wrong with each field of the request.
object
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "request_id": "example", "errors": { "additionalProperty": "example" }}