diff --git a/packages/next-auth/src/index.ts b/packages/next-auth/src/index.ts index 37be71b531..84c98ce1a4 100644 --- a/packages/next-auth/src/index.ts +++ b/packages/next-auth/src/index.ts @@ -68,12 +68,12 @@ */ import { Auth, customFetch } from "@auth/core" +import { signIn, signOut, update } from "./lib/actions.js" import { reqWithEnvURL, setEnvDefaults } from "./lib/env.js" import { initAuth } from "./lib/index.js" -import { signIn, signOut, update } from "./lib/actions.js" -import type { Awaitable, Session } from "@auth/core/types" import type { BuiltInProviderType } from "@auth/core/providers" +import type { Awaitable, Session } from "@auth/core/types" import type { GetServerSidePropsContext, NextApiRequest, @@ -91,10 +91,10 @@ export { AuthError, CredentialsSignin } from "@auth/core/errors" export { customFetch } export type { - Session, Account, - Profile, DefaultSession, + Profile, + Session, User, } from "@auth/core/types" @@ -103,7 +103,7 @@ type AppRouteHandlers = Record< (req: NextRequest) => Promise > -export type { NextAuthConfig } +export type { NextAuthConfig, NextAuthRequest } /** * The result of invoking {@link NextAuth|NextAuth}, initialized with the {@link NextAuthConfig}.