mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
Better-auth configuration
This commit is contained in:
parent
a02da83781
commit
5d04693a09
9 changed files with 62 additions and 144 deletions
7
src/utils/auth-client.ts
Normal file
7
src/utils/auth-client.ts
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
import { createAuthClient } from 'better-auth/client'
|
||||
import { usernameClient } from 'better-auth/client/plugins'
|
||||
|
||||
export const authClient = createAuthClient({
|
||||
plugins: [usernameClient()]
|
||||
})
|
||||
export const { useSession, signIn, signUp, forgetPassword, resetPassword } = authClient
|
||||
Loading…
Add table
Add a link
Reference in a new issue