From 5896e7af2e79283b1d849db34655bc413fc02e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Orb=C3=A1n?= Date: Sat, 5 Oct 2024 18:37:49 +0200 Subject: [PATCH] expose `customFetch` symbol from `next-auth` --- packages/next-auth/src/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/next-auth/src/index.ts b/packages/next-auth/src/index.ts index 7d18ce698f..37be71b531 100644 --- a/packages/next-auth/src/index.ts +++ b/packages/next-auth/src/index.ts @@ -67,7 +67,7 @@ * @module next-auth */ -import { Auth } from "@auth/core" +import { Auth, customFetch } from "@auth/core" import { reqWithEnvURL, setEnvDefaults } from "./lib/env.js" import { initAuth } from "./lib/index.js" import { signIn, signOut, update } from "./lib/actions.js" @@ -88,6 +88,8 @@ import type { NextRequest } from "next/server" import type { NextAuthConfig, NextAuthRequest } from "./lib/index.js" export { AuthError, CredentialsSignin } from "@auth/core/errors" +export { customFetch } + export type { Session, Account,