Skip to Content
Documentation

Google One Tap

Sign-in with Google One Tap, when it is on in the admin console.

/one-tap/callback

POST
/one-tap/callback

Use this endpoint to authenticate with Google One Tap

Request Body

application/json
  1. body
idToken*string

Google ID token, which the client obtains from the One Tap API

callbackURL?string

URL to redirect to after a successful sign-in

Response Body

Successful response

application/json
  1. response
session?
user?
Example Request
curl -X POST 'https://auth.example.com/api/auth/one-tap/callback' \  -H 'Content-Type: application/json' \  -d '{  "idToken": "string"}'
Example Response
{  "session": {    "id": "string",    "expiresAt": "2019-08-24T14:15:22Z",    "token": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "ipAddress": "string",    "userAgent": "string",    "userId": "string",    "impersonatedBy": "string",    "activeOrganizationId": "string"  },  "user": {    "id": "string",    "name": "string",    "email": "string",    "emailVerified": false,    "image": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "role": "string",    "banned": false,    "banReason": "string",    "banExpires": "2019-08-24T14:15:22Z",    "username": "string",    "displayUsername": "string",    "twoFactorEnabled": false  }}