mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 20:37:44 +00:00
fix: a bunch of fixes
This commit is contained in:
@@ -1,11 +1,30 @@
|
||||
import { createAuthClient } from "better-auth/react";
|
||||
import { organizationClient, passkeyClient, twoFactorClient } from "better-auth/client/plugins"
|
||||
import {
|
||||
organizationClient,
|
||||
passkeyClient,
|
||||
twoFactorClient,
|
||||
} from "better-auth/client/plugins";
|
||||
|
||||
export const client = createAuthClient({
|
||||
plugins: [organizationClient(), twoFactorClient(), passkeyClient()],
|
||||
fetchOptions: {
|
||||
credentials: 'include'
|
||||
}
|
||||
plugins: [
|
||||
organizationClient(),
|
||||
twoFactorClient({
|
||||
twoFactorPage: "/two-factor",
|
||||
}),
|
||||
passkeyClient(),
|
||||
],
|
||||
fetchOptions: {
|
||||
credentials: "include",
|
||||
},
|
||||
});
|
||||
|
||||
export const { signUp, signIn, signOut, useSession, user, organization, useListOrganizations, useActiveOrganization } = client;
|
||||
export const {
|
||||
signUp,
|
||||
signIn,
|
||||
signOut,
|
||||
useSession,
|
||||
user,
|
||||
organization,
|
||||
useListOrganizations,
|
||||
useActiveOrganization,
|
||||
} = client;
|
||||
|
||||
Reference in New Issue
Block a user