UNPKG

oidc-client

Version:

OpenID Connect (OIDC) & OAuth2 client library

13 lines (12 loc) 406 B
<script src="https://cdnjs.cloudflare.com/ajax/libs/oidc-client/1.5.2/oidc-client.js"></script> <script> var mgr = new Oidc.UserManager(); mgr.signinRedirectCallback().then(() => { window.history.replaceState({}, window.document.title, window.location.origin); window.location = "/"; }, error => { console.error(error); }); </script>