Google Identity Services está migrando a las APIs de FedCM. Sigue la guía de migración para revisar posibles cambios y evitar efectos negativos en el acceso de los usuarios a tu sitio web.
De forma predeterminada, el mensaje de One Tap se usa en un contexto de acceso. El lenguaje de la instrucción contiene una redacción particular, como "acceder". Puedes cambiar el atributo context para crear un conjunto diferente de texto. En la siguiente tabla,
se enumeran todos los contextos de acceso disponibles y sus descripciones:
Valor del contexto
Mostrar cadena
signin
Acceder con Google
signup
Registrarse con Google
use
Cómo usar con Google
En el siguiente ejemplo de código, se implementa el contexto use:
[null,null,["Última actualización: 2024-11-08 (UTC)"],[[["The default sign-in flow can be customized if the standard method does not meet your specific needs."],["The `context` attribute of the One Tap prompt can be modified to alter the wording displayed to users, for example, changing it from \"sign in\" to \"sign up\" or \"use\"."],["The `context` attribute supports three distinct values: `signin`, `signup`, and `use`, each with its corresponding display string."],["The provided code example shows how to change the context to the `use` option."]]],[]]