feat: support useSession ssr for nuxt (#209)

This commit is contained in:
Bereket Engida
2024-10-17 22:14:56 +03:00
committed by GitHub
parent cda582f339
commit ab0d9cc309
6 changed files with 71 additions and 19 deletions

View File

@@ -1,6 +1,6 @@
import { createAuthClient } from "better-auth/vue";
export const client = createAuthClient({
export const authClient = createAuthClient({
baseURL: "http://localhost:3000",
});
@@ -11,4 +11,4 @@ export const {
useSession,
forgetPassword,
resetPassword,
} = client;
} = authClient;