feat(nuxt-example): add sign-up and password reset pages, update auth client

This commit is contained in:
Dyrean
2024-09-29 00:11:54 +03:00
parent 89e9b70791
commit 989510dd2d
8 changed files with 255 additions and 27 deletions

View File

@@ -1,3 +1,14 @@
import { createAuthClient } from "better-auth/vue";
export const { signIn, signOut, signUp, useSession } = createAuthClient();
export const client = createAuthClient({
baseURL: "http://localhost:3000",
});
export const {
signIn,
signOut,
signUp,
useSession,
forgetPassword,
resetPassword,
} = client;