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

MethodsDescription
async authenticateAuthenticate a User using ID token

Authenticate a User

async authenticate(idToken, callback) authenticates a user using an ID token.

Parameters

ParameterTypeDescription
idTokenstringToken received from Google OAuth2
callbackfunction(result, error)Callback function to be called after authentication.

Response

Success Response

Field NameTypeDescription
resultvoidNo response returned

On this page