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.

Change the One Tap sign-in context

By default, the One Tap prompt is assumed to be used within a sign-in context. The language in the prompt might include certain words, such as "sign in," that don't fit the context you wish to use it in. You can change the context attribute to use a different set of wordings. The following table lists the available contexts and their descriptions:

Context
signin "Sign in with Google."
signup "Sign up with Google."
use "Use with Google."

The following code example implements the use context:

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