Skip to content

Add Google One Tap sign-in to homepage#12

Open
bellisabell wants to merge 2 commits intomainfrom
bell/google-one-tap
Open

Add Google One Tap sign-in to homepage#12
bellisabell wants to merge 2 commits intomainfrom
bell/google-one-tap

Conversation

@bellisabell
Copy link
Copy Markdown
Contributor

Adds Google One Tap authentication to the marketing homepage for frictionless sign-up.

What it does

  • Shows a Google One Tap prompt for users already signed into Google
  • One-click sign-up or sign-in
  • Only shows in multiuser mode when Google OAuth is configured
  • Only shows for logged-out users

Changes

  • Added google-id-token gem for JWT verification
  • Created GoogleOneTapController to handle the callback
  • Added route POST /auth/google_one_tap/callback
  • Added One Tap partial to homepage

Notes

  • Uses the same Google OAuth client ID already configured
  • One Tap has built-in rate limiting (exponential cooldown if dismissed)
  • Works alongside existing "Sign up with Google" button on registration page

- Add google-id-token gem for JWT verification
- Create GoogleOneTapController to handle callback
- Add route for /auth/google_one_tap/callback
- Add One Tap script and config to homepage (multiuser mode only)

One Tap shows a popup for users already signed into Google,
allowing one-click sign-up/sign-in. Falls back gracefully if
user dismisses or isn't signed into Google.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants