Login/Logout/Forgor flows

This commit is contained in:
Jorge Vargas 2025-02-10 23:09:11 -06:00
parent 5d04693a09
commit af4c629047
18 changed files with 298 additions and 129 deletions

View file

@ -4,4 +4,4 @@ import { usernameClient } from 'better-auth/client/plugins'
export const authClient = createAuthClient({
plugins: [usernameClient()]
})
export const { useSession, signIn, signUp, forgetPassword, resetPassword } = authClient
export const { useSession, signIn, signUp, signOut, forgetPassword, resetPassword } = authClient

3
src/utils/types.ts Normal file
View file

@ -0,0 +1,3 @@
import type { Dispatch, SetStateAction } from 'react'
export type SetState<T> = Dispatch<SetStateAction<T>>