[Feature request] Add support for the button mode API of FedCM in One tap plugin #2730

Closed
opened 2026-03-13 10:15:58 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @gzfrozen on GitHub (Jan 19, 2026).

Is this suited for github?

  • Yes, this is suited for github

Currently, the plugin only support to pop up the login window on the top right corner when use FedCM, which is called ''Widget mode".
Image

This mode works well for web sites that do not have a "Login with Google" button, and automatically try to sign in user. However, this mode does not work well for those site that have a dedicated "Login with Google" button.

Describe the solution you'd like

In fact, there is a mode called "Button mode" is designed to handle the sign in by user click the sign in button.
Image

I propose to add the support for the button mode in One Tap plugin. This might be achieved by add an option parameter in authClient.oneTap() function.

Describe alternatives you've considered

Automatically use button mode if detected a user interactive interaction (mouse click) trigger the authClient.oneTap().

Additional context

Document for Button mode

Originally created by @gzfrozen on GitHub (Jan 19, 2026). ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Currently, the plugin only support to pop up the login window on the top right corner when use FedCM, which is called ''Widget mode". <img width="2800" height="990" alt="Image" src="https://github.com/user-attachments/assets/d2fe66cd-331d-4c0c-a6bc-dcb8e80a0e21" /> This mode works well for web sites that do not have a "Login with Google" button, and automatically try to sign in user. However, this mode does not work well for those site that have a dedicated "Login with Google" button. ### Describe the solution you'd like In fact, there is a mode called "Button mode" is designed to handle the sign in by user click the sign in button. <img width="910" height="740" alt="Image" src="https://github.com/user-attachments/assets/0c8d3f63-bd49-4129-b21b-bc9690146acd" /> I propose to add the support for the button mode in One Tap plugin. This might be achieved by add an option parameter in `authClient.oneTap()` function. ### Describe alternatives you've considered Automatically use button mode if detected a user interactive interaction (mouse click) trigger the `authClient.oneTap()`. ### Additional context [Document for Button mode](https://privacysandbox.google.com/blog/fedcm-chrome-125-updates)
GiteaMirror added the enhancement label 2026-03-13 10:15:58 -05:00
Author
Owner

@better-auth-agent[bot] commented on GitHub (Jan 19, 2026):

It looks like your feature request to add support for the button mode API of FedCM in the One Tap plugin is well-founded! Currently, the plugin only supports a widget mode that pops up the login window, which may not be the best for all implementations, especially for those with a dedicated "Login with Google" button. Your suggestion to introduce a button mode is a great idea that would enhance user experience.

This feature could potentially involve adding an option parameter to the authClient.oneTap() function to make it happen! Your reference to alternative solutions, such as using button mode upon user interaction, is also a valuable addition.

It seems this aligns well with the ongoing discussions and proposals for enhancements. If you'd like further assistance or need to tag someone for specific insights, consider reaching out to @bekacru or @ping__ for more specialized responses on your proposal.

What specific features would you like to see in the button mode?

If you need more help, tag @better-auth-agent in a comment so I can respond.

DiagramDiscordGitHub

Diagram Join Star

@better-auth-agent[bot] commented on GitHub (Jan 19, 2026): It looks like your feature request to add support for the button mode API of FedCM in the One Tap plugin is well-founded! Currently, the plugin only supports a widget mode that pops up the login window, which may not be the best for all implementations, especially for those with a dedicated "Login with Google" button. Your suggestion to introduce a button mode is a great idea that would enhance user experience. This feature could potentially involve adding an option parameter to the `authClient.oneTap()` function to make it happen! Your reference to alternative solutions, such as using button mode upon user interaction, is also a valuable addition. It seems this aligns well with the ongoing discussions and proposals for enhancements. If you'd like further assistance or need to tag someone for specific insights, consider reaching out to @bekacru or @ping__ for more specialized responses on your proposal. What specific features would you like to see in the button mode? _If you need more help, tag @better-auth-agent in a comment so I can respond._ <!-- bot:webhook reply v1 --> [Diagram](https://repodiagrams.s3.eu-north-1.amazonaws.com/better-auth_ultra_detailed_interactive.html) • [Discord](https://discord.gg/better-auth) • [GitHub](https://github.com/better-auth/better-auth) [![Diagram](https://img.shields.io/badge/Diagram-2b3137?style=flat-square)](https://repodiagrams.s3.eu-north-1.amazonaws.com/better-auth_ultra_detailed_interactive.html) [![Join](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&style=flat-square)](https://discord.gg/better-auth) [![Star](https://img.shields.io/badge/star-181717?logo=github&logoColor=white&style=flat-square)](https://github.com/better-auth/better-auth)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#2730