import { emailHarmony } from "better-auth-harmony"; import { nextCookies } from "better-auth/next-js"; import { oneTapClient, twoFactorClient, organizationClient, lastLoginMethodClient, } from "better-auth/client/plugins"; import { passkey } from "better-auth/plugins/passkey"; import { createAuthClient } from "better-auth/react"; export const authClient = createAuthClient({ plugins: [ nextCookies(), organizationClient({ teams: { enabled: true, }, }), emailHarmony(), oneTapClient({ clientId: process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID!, autoSelect: false, cancelOnTapOutside: true, context: "signin", promptOptions: { baseDelay: 1000, maxAttempts: 5, }, }), lastLoginMethodClient(), twoFactorClient(), passkey(), ], });