Skip to main content
GET
/
auth
/
google
/
callback
Google OAuth callback
curl --request GET \
  --url https://api.royalti.io/auth/google/callback \
  --header 'Authorization: Bearer <token>'
{
  "success": false,
  "error": {
    "code": "<string>",
    "message": "<string>",
    "details": [
      "<string>"
    ]
  }
}

Code Examples

const response = await fetch('https://api.royalti.io/auth/google/callback', {
  method: 'GET',
});

const data = await response.json();
console.log(data);

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

Redirect to frontend with token