Conscent.ai Developer Documentation
  • Version 2.0
    • Using Conscent.ai
    • Web SDK
    • Login
    • Logout
    • User Details Drawer
    • Google One Tap
    • Mobile SDK
      • iOS(Swift)
        • In-App Purchases with Conscent
      • Android SDK
      • React Native SDK
      • Google In-App Purchases with Conscent
      • Apple In-App Purchases with Conscent
    • Facebook SSO Integration Guide
    • Landing Page API v 2.0
    • AMP Integration
    • Integrating APIs(v2)
      • Purchase Details
      • User Registered Or Not
      • User Registrations
      • Subscription Plans Details
      • Get User Details
      • Add Subscription If User Registered
      • Update UserDetails
      • Update SubscriptionDetails
      • Get All Transaction Details
    • IAM System API Documentation
  • Version 1.0
    • Getting Started
    • On Board
    • Using Conscent.ai
    • Authentication
    • Web SDK
    • Login
    • Logout
    • Amp Documentation
    • Mobile SDK
      • Android
      • Flutter
      • iOS(Swift)
      • React Native SDK
    • Auto Login
    • Creating External Purchases
    • Landing Page API
  • Login Screen Customization
  • Integrating Client Payment Gateway
  • Integrating with APIs
    • User Details and Subscriptions Information
    • Purchased Subscriptions
    • User and Purchase Details
    • Client Purchases
    • Client Micropayments
    • Client Passes
    • Cancel Active Subscriptions
    • Delete User
  • Events API Docs
    • Different Types of Events
    • SSO Login Flow
  • Discount Coupon
    • Dynamic Coupon API Generation:
  • New Webhooks
    • Meter Banner Webhook
    • Paywall Webhook
    • SignUp Webhook
    • Refund Webhook
    • Purchase Webhook
    • Subscription Landing Page Webhook
    • Popup Webhook
    • User Update Webhook
    • Payment Gateway Webhook
    • Review Page Webhook
    • Transaction Webhook
    • Login Webhook
    • Cancel Subscription Webhook
  • Old Webhooks
    • Sign Up Webhook
    • Login Webhook
    • Subscription Payment Webhook
    • Subscription Cancelled Webhook
    • Pass Payment Webhook
    • Subscription Bundle Payment Webhook
    • Review Subscription Webhook
    • Micro Payment Webhook
    • How to validate Webhooks?
  • Registering The Content
    • Create Content
    • Edit Content
    • View Content
  • Country Code List
  • Supported Currencies and Payment Gateways
    • Stripe Supported Country with Currency
    • Razorpay Supported Country with Currency
    • Paypal Supported Country with Currency
  • Errors
  • Loyalty System
    • Web SDK
    • iOS SDK
    • Android SDK
    • Flutter SDK
    • API from server
Powered by GitBook
On this page
  1. Version 2.0

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);
    },
});
Parameter
Description

clientId

The unique identifier provided by Conscent for authenticating the client.

contentId

The ID of the content where the One Tap login is integrated.

successCallback

A callback function is triggered upon successful user login.

oneTapArgs

A callback function returns information related to the One Tap process, including any errors or reasons for not displaying the One Tap prompt.

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-sso-v2.netlify.app/

  • Production: https://slp-v2.netlify.app/

PreviousUser Details DrawerNextMobile SDK

Last updated 6 months ago