[PR #1452] [MERGED] feat(one-tap): improve Google One Tap integration with JWT verification and improved prompt handling #3813

Closed
opened 2026-03-13 11:14:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1452
Author: @Bekacru
Created: 2/15/2025
Status: Merged
Merged: 2/15/2025
Merged by: @Bekacru

Base: mainHead: refactor/one-tap


📝 Commits (3)

  • 5dfb788 fix(auth): use options.baseURL instead of ctx.baseURL on trusted origins
  • c7fcf77 feat(one-tap): improve Google One Tap integration with JWT verification and improved prompt handling
  • 380778f feat(one-tap): add One Tap component for user authentication and fix prompt options

📊 Changes

7 files changed (+423 additions, -100 deletions)

View changed files

demo/nextjs/components/one-tap.tsx (+178 -0)
📝 demo/nextjs/lib/auth-client.ts (+3 -0)
📝 demo/nextjs/lib/auth.ts (+1 -1)
📝 docs/content/docs/plugins/one-tap.mdx (+81 -48)
📝 packages/better-auth/src/auth.ts (+1 -1)
📝 packages/better-auth/src/plugins/one-tap/client.ts (+101 -20)
📝 packages/better-auth/src/plugins/one-tap/index.ts (+58 -30)

📄 Description

address issues raised by #1415 thread including handling jwt verification using jwks, using prompts with exponential back off and doc improvements


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/1452 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 2/15/2025 **Status:** ✅ Merged **Merged:** 2/15/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `refactor/one-tap` --- ### 📝 Commits (3) - [`5dfb788`](https://github.com/better-auth/better-auth/commit/5dfb78883885389242c168276de52ecbac3f0b0e) fix(auth): use options.baseURL instead of ctx.baseURL on trusted origins - [`c7fcf77`](https://github.com/better-auth/better-auth/commit/c7fcf77b686fd339bf36f9532f69c209c4400c8b) feat(one-tap): improve Google One Tap integration with JWT verification and improved prompt handling - [`380778f`](https://github.com/better-auth/better-auth/commit/380778f324f3d02c4cb3738930e3d66c495a2aa8) feat(one-tap): add One Tap component for user authentication and fix prompt options ### 📊 Changes **7 files changed** (+423 additions, -100 deletions) <details> <summary>View changed files</summary> ➕ `demo/nextjs/components/one-tap.tsx` (+178 -0) 📝 `demo/nextjs/lib/auth-client.ts` (+3 -0) 📝 `demo/nextjs/lib/auth.ts` (+1 -1) 📝 `docs/content/docs/plugins/one-tap.mdx` (+81 -48) 📝 `packages/better-auth/src/auth.ts` (+1 -1) 📝 `packages/better-auth/src/plugins/one-tap/client.ts` (+101 -20) 📝 `packages/better-auth/src/plugins/one-tap/index.ts` (+58 -30) </details> ### 📄 Description address issues raised by #1415 thread including handling jwt verification using jwks, using prompts with exponential back off and doc improvements --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 11:14:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#3813