payload-authjs
Version:
A Payload CMS 3 plugin for Auth.js 5
12 lines (11 loc) • 503 B
TypeScript
import type { NextAuthResult } from "next-auth";
import { NextRequest, NextResponse } from "next/server";
type Middleware = (req: NextRequest) => NextResponse;
type AuthjsMiddleware = NextAuthResult["auth"] | ReturnType<NextAuthResult["auth"]>;
/**
* Middleware of payload-authjs
*
* @deprecated This middleware is no longer needed and will be removed in the future
*/
export default function middleware(arg: NextRequest | Middleware | AuthjsMiddleware | any): Middleware | NextResponse;
export {};