From a2029ef7fdcfd87dcbf526ed0f4b26b5fcc204d6 Mon Sep 17 00:00:00 2001 From: KinfeMichael Tariku <65047246+Kinfe123@users.noreply.github.com> Date: Thu, 10 Jul 2025 11:15:37 -0700 Subject: [PATCH] fix: linking accounts for anon users with one tap and passkey (#3124) * typo * typo * linking accounts * clean up * clean up * clean up * clean up --- docs/content/docs/concepts/plugins.mdx | 2 +- packages/better-auth/src/plugins/anonymous/index.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/content/docs/concepts/plugins.mdx b/docs/content/docs/concepts/plugins.mdx index 7ca4e03a56..536e055073 100644 --- a/docs/content/docs/concepts/plugins.mdx +++ b/docs/content/docs/concepts/plugins.mdx @@ -533,4 +533,4 @@ If you need to use better fetch plugins you can pass them to the `fetchPlugins` This is only useful if you want to provide `hooks` like `useSession` and you want to listen to atoms and re-evaluate them when they change. -You can see how this is used in the built-in plugins. +You can see how this is used in the built-in plugins. \ No newline at end of file diff --git a/packages/better-auth/src/plugins/anonymous/index.ts b/packages/better-auth/src/plugins/anonymous/index.ts index 6249064377..ec92078bf7 100644 --- a/packages/better-auth/src/plugins/anonymous/index.ts +++ b/packages/better-auth/src/plugins/anonymous/index.ts @@ -179,7 +179,8 @@ export const anonymous = (options?: AnonymousOptions) => { ctx.path.startsWith("/oauth2/callback") || ctx.path.startsWith("/magic-link/verify") || ctx.path.startsWith("/email-otp/verify-email") || - ctx.path.startsWith("/phone-number/verify") + ctx.path.startsWith("/one-tap/callback") || + ctx.path.startsWith("/passkey/verify-authentication") ); }, handler: createAuthMiddleware(async (ctx) => {