feat(frontend): Add organization creation, deletion, add better-auth organization plugin
This commit is contained in:
@@ -1,7 +1,18 @@
|
||||
import { createAuthClient } from 'better-auth/vue'
|
||||
import { organizationClient } from 'better-auth/client/plugins'
|
||||
|
||||
export const authClient = createAuthClient({
|
||||
baseURL: 'http://localhost:3000'
|
||||
baseURL: 'http://localhost:3001',
|
||||
plugins: [organizationClient()]
|
||||
})
|
||||
|
||||
export const { signIn, signOut, signUp, useSession, forgetPassword, resetPassword } = authClient
|
||||
export const {
|
||||
signIn,
|
||||
signOut,
|
||||
signUp,
|
||||
useSession,
|
||||
forgetPassword,
|
||||
resetPassword,
|
||||
organization,
|
||||
useListOrganizations
|
||||
} = authClient
|
||||
|
||||
Reference in New Issue
Block a user