mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-07 20:37:44 +00:00
feat(nuxt-example): add sign-up and password reset pages, update auth client
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user