UNPKG

payloadcms_otp_plugin

Version:

A comprehensive One-Time Password (OTP) authentication plugin for Payload CMS that enables secure passwordless authentication via SMS and email

22 lines (21 loc) 610 B
import { Payload, PayloadRequest, SanitizedCollectionConfig, TypedUser } from "payload"; export declare const removeExpiredSessions: (sessions: { createdAt: Date | string; expiresAt: Date | string; id: string; }[]) => { createdAt: Date | string; expiresAt: Date | string; id: string; }[]; /** * TODO: Remove when Payload exports this function */ export declare const addUserSession: ({ collectionConfig, payload, req, user, }: { collectionConfig: SanitizedCollectionConfig; payload: Payload; req: PayloadRequest; user: TypedUser; }) => Promise<{ sid?: string; }>;