cosmic-authentication
Version:
Authentication library for cosmic.new. Designed to be used and deployed on cosmic.new
13 lines • 432 B
TypeScript
import { NextRequest, NextResponse } from 'next/server';
export declare function createAuthHandler(): {
GET: (request: NextRequest) => Promise<NextResponse<unknown>>;
POST: (request: NextRequest) => Promise<NextResponse<{
success: boolean;
message: string;
}> | NextResponse<{
nextStep: string;
}> | NextResponse<{
error: string;
}>>;
};
//# sourceMappingURL=auth-handler.d.ts.map