mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-22 04:49:26 +00:00
* feat(auth): add admin password reset CLI command and reset password web UI * fix(auth): invalidate previous reset tokens and use AsyncLocalStorage for link capture
9 lines
286 B
TypeScript
9 lines
286 B
TypeScript
import { createAuthClient } from 'better-auth/react'
|
|
|
|
export const authClient = createAuthClient({
|
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
baseURL: window.location.origin,
|
|
})
|
|
|
|
export const { signIn, signUp, useSession, signOut, resetPassword } = authClient
|