feat: custom session response (#579)

This commit is contained in:
Bereket Engida
2024-11-19 21:16:23 +03:00
committed by GitHub
parent a3f0793d68
commit f5f60a23e8
28 changed files with 425 additions and 95 deletions

View File

@@ -8,6 +8,7 @@ import {
oneTapClient,
} from "better-auth/client/plugins";
import { toast } from "sonner";
import { customSessionClient } from "./auth/plugins/session-client";
export const client = createAuthClient({
plugins: [
@@ -22,6 +23,7 @@ export const client = createAuthClient({
oneTapClient({
clientId: process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID!,
}),
customSessionClient(),
],
fetchOptions: {
onError(e) {