Auto-commit 2026-04-29 16:31
This commit is contained in:
37
node_modules/next-auth/next/index.d.ts
generated
vendored
Normal file
37
node_modules/next-auth/next/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
import type { GetServerSidePropsContext, NextApiRequest, NextApiResponse } from "next";
|
||||
import { type NextRequest } from "next/server";
|
||||
import type { AuthOptions, Session } from "..";
|
||||
import type { CallbacksOptions, Awaitable } from "../core/types";
|
||||
interface RouteHandlerContext {
|
||||
params: Awaitable<{
|
||||
nextauth: string[];
|
||||
}>;
|
||||
}
|
||||
declare function NextAuth(options: AuthOptions): any;
|
||||
declare function NextAuth(req: NextApiRequest, res: NextApiResponse, options: AuthOptions): any;
|
||||
declare function NextAuth(req: NextRequest, res: RouteHandlerContext, options: AuthOptions): any;
|
||||
export default NextAuth;
|
||||
declare type GetServerSessionOptions = Partial<Omit<AuthOptions, "callbacks">> & {
|
||||
callbacks?: Omit<AuthOptions["callbacks"], "session"> & {
|
||||
session?: (...args: Parameters<CallbacksOptions["session"]>) => any;
|
||||
};
|
||||
};
|
||||
declare type GetServerSessionParams<O extends GetServerSessionOptions> = [GetServerSidePropsContext["req"], GetServerSidePropsContext["res"], O] | [NextApiRequest, NextApiResponse, O] | [O] | [];
|
||||
export declare function getServerSession<O extends GetServerSessionOptions, R = O["callbacks"] extends {
|
||||
session: (...args: any[]) => infer U;
|
||||
} ? U : Session>(...args: GetServerSessionParams<O>): Promise<R | null>;
|
||||
/** @deprecated renamed to `getServerSession` */
|
||||
export declare function unstable_getServerSession<O extends GetServerSessionOptions, R = O["callbacks"] extends {
|
||||
session: (...args: any[]) => infer U;
|
||||
} ? U : Session>(...args: GetServerSessionParams<O>): Promise<R | null>;
|
||||
declare global {
|
||||
namespace NodeJS {
|
||||
interface ProcessEnv {
|
||||
NEXTAUTH_URL?: string;
|
||||
NEXTAUTH_SECRET?: string;
|
||||
AUTH_SECRET?: string;
|
||||
VERCEL?: "1";
|
||||
}
|
||||
}
|
||||
}
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
Reference in New Issue
Block a user