UNPKG

@authduo/authduo

Version:

Free User-sovereign Authentication for the World

11 lines (8 loc) 119 B
export async function nullcatch<R>(fn: () => Promise<R>) { try { return await fn() } catch { return null } }