UNPKG

payload

Version:

Node, React, Headless CMS and Application Framework built on Next.js

17 lines 607 B
import type { SanitizedPermissions, TypedUser } from '../../index.js'; import type { PayloadRequest } from '../../types/index.js'; export type AuthArgs = { /** * Specify if it's possible for auth strategies to set headers within this operation. */ canSetHeaders?: boolean; headers: Request['headers']; req?: Omit<PayloadRequest, 'user'>; }; export type AuthResult = { permissions: SanitizedPermissions; responseHeaders?: Headers; user: null | TypedUser; }; export declare const auth: (args: Required<AuthArgs>) => Promise<AuthResult>; //# sourceMappingURL=auth.d.ts.map