UNPKG

payload-totp

Version:

Add an extra security layer to PayloadCMS using a Time-based One-time Password (TOTP).

9 lines (8 loc) 263 B
export function normalizePathname(pathname) { if (!pathname || pathname === '/') { return '/'; } const normalized = pathname.replace(/\/+$/, ''); return normalized === '' ? '/' : normalized; } //# sourceMappingURL=normalizePathname.js.map