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
Is anyone able to tell me what might cause this method in the library to return the "Unable To Obtain Valid Token". I thought the error might be occurring in our app because the okta service had not yet been fully initialised but I have added some code to prevent the app running the getValidToken() call until the initialisation is complete. At first I thought this had fixed the issue but then (about 24 hours after initial login and lots of testing in the meantime) the call failed again with this error.
getValidToken(buffer = AUTH_EXPIRY_BUFFER) {
return __awaiter(this, void 0, void 0, function* () {
if (this._tokenSubject.value) {
if (!this._tokenSubject.value.isValid(buffer)) {
yield this.refreshToken();
if (this._tokenSubject.value) {
return this._tokenSubject.value;
}
}
else {
return this._tokenSubject.value;
}
}
throw new Error("Unable To Obtain Valid Token");
});
}
One more point: do you know what the effect might be of passing a buffer value (this defaults to 10 minutes if you don't pass anything in, which we never do) ?
The text was updated successfully, but these errors were encountered:
Is anyone able to tell me what might cause this method in the library to return the "Unable To Obtain Valid Token". I thought the error might be occurring in our app because the okta service had not yet been fully initialised but I have added some code to prevent the app running the getValidToken() call until the initialisation is complete. At first I thought this had fixed the issue but then (about 24 hours after initial login and lots of testing in the meantime) the call failed again with this error.
One more point: do you know what the effect might be of passing a buffer value (this defaults to 10 minutes if you don't pass anything in, which we never do) ?
The text was updated successfully, but these errors were encountered: