feat: added oidc auth plugin for better auth (#147)
* feat: added oidc auth plugin for better auth * chore: remove unused code * chore: revert change to pnpm workspace file * chore: remove unused code * chore: remove unused code * chore: remove unused code * chore: added requested changes
This commit is contained in:
committed by
GitHub
parent
c7f7531b11
commit
ba2fd7f695
@@ -1,8 +1,13 @@
|
||||
import { BetterAuthClientPlugin } from "better-auth";
|
||||
import { apiKeyClient, magicLinkClient } from "better-auth/client/plugins";
|
||||
import { BetterFetchOption, createAuthClient } from "better-auth/react";
|
||||
import type { BetterAuthClientPlugin } from "better-auth";
|
||||
import type { BetterFetchOption } from "better-auth/react";
|
||||
import {
|
||||
apiKeyClient,
|
||||
genericOAuthClient,
|
||||
magicLinkClient,
|
||||
} from "better-auth/client/plugins";
|
||||
import { createAuthClient } from "better-auth/react";
|
||||
|
||||
import { socialProvidersPlugin } from "./auth";
|
||||
import type { socialProvidersPlugin } from "./auth";
|
||||
|
||||
const socialProvidersPluginClient = {
|
||||
id: "social-providers-plugin",
|
||||
@@ -21,5 +26,10 @@ const socialProvidersPluginClient = {
|
||||
} satisfies BetterAuthClientPlugin;
|
||||
|
||||
export const authClient = createAuthClient({
|
||||
plugins: [magicLinkClient(), apiKeyClient(), socialProvidersPluginClient],
|
||||
plugins: [
|
||||
magicLinkClient(),
|
||||
apiKeyClient(),
|
||||
genericOAuthClient(),
|
||||
socialProvidersPluginClient,
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user