mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-10 04:19:32 +00:00
fix: linking accounts for anon users with one tap and passkey (#3124)
* typo * typo * linking accounts * clean up * clean up * clean up * clean up
This commit is contained in:
committed by
GitHub
parent
b03230688a
commit
a2029ef7fd
@@ -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.
|
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.
|
||||||
@@ -179,7 +179,8 @@ export const anonymous = (options?: AnonymousOptions) => {
|
|||||||
ctx.path.startsWith("/oauth2/callback") ||
|
ctx.path.startsWith("/oauth2/callback") ||
|
||||||
ctx.path.startsWith("/magic-link/verify") ||
|
ctx.path.startsWith("/magic-link/verify") ||
|
||||||
ctx.path.startsWith("/email-otp/verify-email") ||
|
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) => {
|
handler: createAuthMiddleware(async (ctx) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user