Warning: This data is provided under the Google User Data Policy. Please review and comply with the policy. Failure to do so may result in project suspension or account suspension.

Toggle outside tap to close One Tap

By default, the One Tap prompt closes automatically if the user clicks outside of the prompt. You can disable this behavior when you set the data-cancel_on_tap_outside attribute with a value of false. See the following code example:

<div id="g_id_onload"
     data-client_id="YOUR_GOOGLE_CLIENT_ID"
     data-login_uri="https://your.domain/your_login_endpoint"
     data-cancel_on_tap_outside="false">
</div>