Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
17 lines
607 B
Plaintext
17 lines
607 B
Plaintext
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 |