UNPKG

@authlocal/authlocal

Version:

User-sovereign Logins For All

14 lines 287 B
export async function attempts(...fns) { let lastError; for (const fn of fns) { try { return await fn(); } catch (e) { lastError = e; continue; } } throw lastError; } //# sourceMappingURL=attempts.js.map