Add magic link sign-in and harden auth query fallbacks
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
import { createAuthClient } from "better-auth/react";
|
||||
import { magicLinkClient } from "better-auth/client/plugins";
|
||||
import { convexClient } from "@convex-dev/better-auth/client/plugins";
|
||||
import { polarClient } from "@polar-sh/better-auth/client";
|
||||
|
||||
// Next.js: kein crossDomainClient nötig (same-origin via API Route Proxy)
|
||||
export const authClient = createAuthClient({
|
||||
plugins: [convexClient(), polarClient()],
|
||||
plugins: [magicLinkClient(), convexClient(), polarClient()],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user