authservice-nextjs
Version:
Next.js SDK for Auth Service - Server and client-side authentication with App Router support
10 lines • 410 B
TypeScript
import { NextRequest, NextResponse } from 'next/server';
import { NextAuthConfig } from '../types';
export declare function createAuthMiddleware(config: NextAuthConfig): (request: NextRequest) => Promise<NextResponse<unknown>>;
export declare function authMiddlewareConfig(customPaths?: {
protected?: string[];
public?: string[];
}): {
matcher: string[];
};
//# sourceMappingURL=middleware.d.ts.map