mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-23 13:58:08 -05:00
11 lines
327 B
TypeScript
11 lines
327 B
TypeScript
import { genericOAuthClient } from 'better-auth/client/plugins'
|
|
import { createAuthClient } from 'better-auth/react'
|
|
|
|
export const client = createAuthClient({
|
|
plugins: [genericOAuthClient()],
|
|
})
|
|
export const { useSession } = client
|
|
|
|
// Export commonly used hooks and methods
|
|
export const { signIn, signUp, signOut } = client
|