mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Login/Logout/Forgor flows
This commit is contained in:
parent
5d04693a09
commit
af4c629047
18 changed files with 298 additions and 129 deletions
|
|
@ -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
3
src/utils/types.ts
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import type { Dispatch, SetStateAction } from 'react'
|
||||
|
||||
export type SetState<T> = Dispatch<SetStateAction<T>>
|
||||
Loading…
Add table
Add a link
Reference in a new issue