Authenticate Your UsersGoogle ID Token
Authenticate User using ID Token
Learn how to authenticate users with Google ID Token using the Okto SDK.
Methods Overview
| Methods | Description | 
|---|---|
async authenticate | Authenticate a User using ID token | 
Authenticate a User
async authenticate(idToken, callback)  authenticates a user using an ID token.
Parameters
| Parameter | Type | Description | 
|---|---|---|
idToken | string | Token received from Google OAuth2 | 
callback | function(result, error) | Callback function to be called after authentication. | 
Response
Success Response
| Field Name | Type | Description | 
|---|---|---|
result | void | No response returned |