Google One Tap

To enable Google One Tap login functionality within Conscent's client environment, follow the steps below:

Initialization Process: To initialize Google One Tap login, use the following parameters:

csc('google-one-tap', {
    clientId,
    contentId: storyContent,
    successCallback: (data: {
	loggedIn:true,
        userId:string,
	email:string,
	name:string,
	phoneNumber:string}) 
		=> {
      console.log(data.loggedIn);
    },
    oneTapArgs: (data: argsObject) => {
      console.log(data);
    },
});

Parameters Overview

The argsObject will return the following object type:

argsObject = {
    getNotDisplayedReason: "browser_not_supported" || "Missing_client_id" || "Opt_out_or_no_session" || "Secure_http_required" || "Suppressed_by_user" || "Unregistered_origin" || "Unknown_reason",
    isDisplayed: true || false,
    isNotDisplayed: true || false,
    getSkippedReason: "auto_cancel" || "user_cancel" || "tap_outside" || "issuing_failed"
};
  • getNotDisplayedReason: Provides reasons for not displaying the One Tap prompt. Choose from the available options.

  • isDisplayed: Indicates whether the One Tap prompt is displayed.

  • isNotDisplayed: Indicates whether the One Tap prompt is not displayed.

  • getSkippedReason: Provides reasons for skipping the One Tap prompt.

URL Whitelisting on GCP

Ensure the following URLs are whitelisted according to the environment:

  • Sandbox: https://sandbox-user.conscent.in/

  • Production: https://user.conscent.in/

Last updated