mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-22 02:17:41 +00:00
9 lines
271 B
TypeScript
9 lines
271 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 } = authClient
|