payload-totp
Version:
Add an extra security layer to PayloadCMS using a Time-based One-time Password (TOTP).
10 lines (9 loc) • 347 B
TypeScript
import { type IncomingAuthType, type User } from 'payload';
type Args = {
authConfig: Omit<IncomingAuthType, 'cookies'> & Required<Pick<IncomingAuthType, 'cookies'>>;
cookiePrefix: string;
secret: string;
user: User;
};
export declare function setCookie({ authConfig, cookiePrefix, secret, user }: Args): Promise<void>;
export {};