feat: OIDC Plugin (#765)

This commit is contained in:
Bereket Engida
2024-12-21 02:12:04 +03:00
committed by GitHub
parent 79625f7dbf
commit 4555f92063
29 changed files with 3051 additions and 47 deletions

View File

@@ -6,6 +6,8 @@ import {
adminClient,
multiSessionClient,
oneTapClient,
oidcClient,
genericOAuthClient,
} from "better-auth/client/plugins";
import { toast } from "sonner";
@@ -23,6 +25,8 @@ export const client = createAuthClient({
oneTapClient({
clientId: process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID!,
}),
oidcClient(),
genericOAuthClient(),
],
fetchOptions: {
onError(e) {