chore: update comments, remove debug logging

This commit is contained in:
Marcell Fülöp
2023-02-24 22:27:27 +00:00
parent 6f98fa61e4
commit df5ab361e3
2 changed files with 5 additions and 19 deletions

View File

@ -60,22 +60,18 @@ module.exports = Mn.View.extend({
expiry = v[1];
}
if (name === 'npm_oidc_error') {
console.log(' ERROR 000 > ', value);
error = decodeURIComponent(value);
}
}
console.log('login.js event > render', expiry, token);
// register a newly acquired jwt token following successful oidc authentication
if (token && expiry && (new Date(Date.parse(decodeURIComponent(expiry)))) > new Date() ) {
console.log('login.js event > render >>>');
Tokens.addToken(token);
document.location.replace('/');
}
// show error message following a failed oidc authentication
if (error) {
console.log(' ERROR > ', error);
this.ui.oidcError.html(error);
}