cosmic-authentication
Version:
Authentication library for cosmic.new. Designed to be used and deployed on cosmic.new
5 lines • 317 B
TypeScript
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