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 muestra en la esquina superior derecha de las ventanas del navegador web para computadoras de escritorio. Cuando se usa FedCM, el navegador controla por completo la ubicación del mensaje. Por lo tanto, no se admiten diseños personalizados.
De lo contrario, muestra One Tap dentro de un elemento de contenedor para cambiar la posición de la instrucción.
Para ello, especifica el ID de DOM del elemento contenedor en el atributo data-prompt_parent_id.
En el siguiente ejemplo de código, se reutiliza el elemento g_id_onload como elemento del contenedor y se muestra el mensaje de One Tap en la posición especificada:
[null,null,["Última actualización: 2024-11-08 (UTC)"],[[["With the migration of One Tap to the FedCM API, browsers will control the prompt's size and position, eliminating support for custom positions."],["Developers are advised against customizing the position for new One Tap integrations and to review the migration guide for existing integrations to ensure compatibility."],["Customizing the One Tap login flow is possible, including positioning the prompt within a container element by utilizing the `data-prompt_parent_id` attribute, but avoid obscuring any prompt content to comply with Google's policies."],["Remember that the `data-prompt_parent_id` attribute is disregarded on mobile web browsers, limiting customization in those environments."],["Hiding or manipulating the One Tap prompt's content to misrepresent its origin from a Google iframe can lead to severe consequences, including project or account suspension."]]],[]]