Google One Tap
Sign-in with Google One Tap, when it is on in the admin console.
POST
Use this endpoint to authenticate with Google One Tap
application/json- body
idToken*stringGoogle ID token, which the client obtains from the One Tap API
callbackURL?stringURL to redirect to after a successful sign-in
Successful response
application/json- response
session?user?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 }}