UNPKG

web-auth-library

Version:

Authentication library for the browser environment using Web Crypto API

10 lines (9 loc) 275 B
/* SPDX-FileCopyrightText: 2022-present Kriasoft */ /* SPDX-License-Identifier: MIT */ const logOnceKeys = new Set(); export function logOnce(severity, key, message) { if (!logOnceKeys.has(key)) { logOnceKeys.add(key); console[severity](message); } }