UNPKG

oidc-client

Version:

OpenID Connect (OIDC) & OAuth2 client library

14 lines (12 loc) 408 B
function log() { document.getElementById('out').innerText = ''; Array.prototype.forEach.call(arguments, function(msg) { if (msg instanceof Error){ msg = "Error: " + msg.message; } else if (typeof msg !== 'string') { msg = JSON.stringify(msg, null, 2); } document.getElementById('out').innerHTML += msg + '\r\n'; }); }