UNPKG

cosmic-authentication

Version:

Authentication library for cosmic.new. Designed to be used and deployed on cosmic.new

5 lines 317 B
import { NextResponse } from 'next/server'; import type { NextRequest } from 'next/server'; import { CosmicAuthConfig } from '../types'; export declare function createAuthMiddleware(userConfig?: CosmicAuthConfig): (request: NextRequest) => Promise<NextResponse<unknown>>; //# sourceMappingURL=auth-middleware.d.ts.map