You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2017. It is now read-only.
PS: I encountered this situation (of an empty error object) when attempting to renew access token using the javascript implicit client, and the "silent_renew.html" page was not specified as a valid callback url in identityServer.
The text was updated successfully, but these errors were encountered:
configureAutoRenewToken() function contains
console.error(console.error(e.message || e);
In some cases e is undefined, so an error is thrown
"Uncaught (in promise) TypeError: Cannot read property 'message' of undefined(…)"
Suggest:
var msg = 'unknown error in renewTokenSilentAsync()';
if (e) {
if (e.message) {
msg = e.message;
} else {
msg = e;
}
}
console.error(msg);
Or something that protects e being undefined.
console.error(e ? (e.message ? e.message : e) : 'unknown error in confugureAutoRenewToken()');
would be the shortest version.
PS: I encountered this situation (of an empty error object) when attempting to renew access token using the javascript implicit client, and the "silent_renew.html" page was not specified as a valid callback url in identityServer.
The text was updated successfully, but these errors were encountered: