Google Identity Services is migrating to FedCM APIs. Follow the migration guide to review potential changes and avoid negative impacts for user sign-in to your website.
Stay organized with collections
Save and categorize content based on your preferences.
If preferred, you can use only JavaScript code to trigger the One Tap prompt
or render the Sign in with Google button.
To configure the One Tap prompt in JavaScript, you first need to call the
initialize() method. Then, call the prompt() method to display the prompt
UI. See the following code snippet:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["Developers can customize the default login flow using JavaScript to better suit their specific needs."],["You can trigger the One Tap prompt or display the Sign in with Google button programmatically using JavaScript."],["The `initialize()` and `prompt()` methods are key to configuring and displaying the One Tap prompt in your web application."],["To receive updates on the prompt's status, such as if it's not displayed or skipped by the user, a callback function can be provided to the `prompt()` method."],["JavaScript allows for rendering both the One Tap prompt and the Sign in with Google button, offering users flexible login options."]]],[]]