UNPKG

@authduo/authduo

Version:

Free User-sovereign Authentication for the World

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