mirror of
https://github.com/jorgev259/soc_site-astro.git
synced 2025-06-29 07:57:41 +00:00
7 lines
281 B
TypeScript
7 lines
281 B
TypeScript
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
|