mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-04-18 05:47:31 -04:00
* feat: oidc feat: organization switcher refactor: org context feat: invitations GLM * feat: link current account * refactor: own page for sso registration * feat: per-user account management * refactor: code style * refactor: user existing check * refactor: restrict provider configuration to super admins only * refactor: cleanup / pr review * chore: fix lint issues * chore: pr feedbacks * test(e2e): automated tests for OIDC * fix: check url first for sso provider identification * fix: prevent oidc provider to be named "credential"
22 lines
497 B
TypeScript
22 lines
497 B
TypeScript
import { createAuthClient } from "better-auth/react";
|
|
import {
|
|
twoFactorClient,
|
|
usernameClient,
|
|
adminClient,
|
|
organizationClient,
|
|
inferAdditionalFields,
|
|
} from "better-auth/client/plugins";
|
|
import { ssoClient } from "@better-auth/sso/client";
|
|
import type { auth } from "~/server/lib/auth";
|
|
|
|
export const authClient = createAuthClient({
|
|
plugins: [
|
|
inferAdditionalFields<typeof auth>(),
|
|
usernameClient(),
|
|
adminClient(),
|
|
organizationClient(),
|
|
ssoClient(),
|
|
twoFactorClient(),
|
|
],
|
|
});
|