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
But a recent addition is added to the isAuthenticated() method to validate the access token expiry date as well.
This works for checking the authenticated status of the user but when the token is invalid, httpRequest method has the capability to refresh the token but that logic is newer reached due to await this._validateMethod(config.attachToken);
How to reproduce:
Let the token expire
Trigger an API that uses the httpRequest method.
Observe that the API request is not triggered and an exception is thrown.
Expected behavior:
httpRequest should continue and the token should be refreshed if invalid.
Environment information (Please complete the following information; remove any unnecessary fields) :
Product Version: [e.g., IS 5.10.0, IS 5.9.0]
OS: [e.g., Windows, Linux, Mac]
Browser: [e.g., Chrome, Firefox]
SDK Version: [e.g., 0.1.0, 0.1.1]
The text was updated successfully, but these errors were encountered:
Describe the issue:
ATM, before the
httpRequest
is invoked, we do a validation check on the user's authentication status.https://github.com/asgardeo/asgardeo-auth-spa-sdk/blob/v3.1.1/lib/src/client.ts#L512C1-L517C1
But a recent addition is added to the
isAuthenticated()
method to validate the access token expiry date as well.This works for checking the authenticated status of the user but when the token is invalid,
httpRequest
method has the capability to refresh the token but that logic is newer reached due toawait this._validateMethod(config.attachToken);
How to reproduce:
httpRequest
method.Expected behavior:
httpRequest
should continue and the token should be refreshed if invalid.Environment information (Please complete the following information; remove any unnecessary fields) :
The text was updated successfully, but these errors were encountered: