UNPKG

aegis-auth

Version:

A credentials-based auth solution for Next.js (and other Node projects) with IP rate-limiting, account lockouts, and sessions in DB.

14 lines 510 B
import type { PrismaClient } from "@prisma/client"; import type { AegisAuthConfig } from "../config"; import { type ActionResponse, type ClientSession } from "../types"; import { type ParsedRequestData } from "../utils"; export declare function createSession(context: { prisma: PrismaClient; config: Required<AegisAuthConfig>; parsedRequest: ParsedRequestData; }, input: { userId: string; }): Promise<ActionResponse<{ session: ClientSession; }>>; //# sourceMappingURL=createSession.d.ts.map