dist/js/auth.js
// doLogin function: generates and stores nonce, redirects to authorization request url
doLogin function: generates and stores nonce, redirects to authorization request url
doLogin function : generates and stores nonce redirects to authorization request url
function doLogin() {
  let nonce = generateNonce(60);
  let authorizationUrl =
    authUrl +
    '/' +
    environmentId +
    '/as/authorize?response_type=' +
    responseType +
    '&client_id=' +
    clientId +
    '&redirect_uri=' +
    redirectUri +
    '&scope=' +
    scopes +
    '&nonce=' +
    nonce;
  window.localStorage.setItem('nonce', nonce);
  window.location.href = authorizationUrl;
}
function doLogin ( ) { let nonce = generateNonce ( 60 ) ; let authorizationUrl = authUrl + '/' + environmentId + '/as/authorize?response_type=' + responseType + '&client_id=' + clientId + '&redirect_uri=' + redirectUri + '&scope=' + scopes + '&nonce=' + nonce ; window . localStorage . setItem ( 'nonce' , nonce ) ; window . location . href = authorizationUrl ; }
doLogin function: generates and stores nonce, redirects to authorization request url
doLogin function : generates and stores nonce redirects to authorization request url
// window.localStorage.setItem('nonce', 'bogus nonce that does not match');