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
When a user is already authenticated and on a page, triggering a refresh of the page and immediately calling the getAuthorizationHeaderValue function will return Bearer undefined.
It seems like the function is available before the state is repopulated, so state.accessToken is undefined.
Priority
high - This issue has a substantial impact.
Package Versions
@bcgov/citz-imb-sso-react: 1.0.1 and newer
@bcgov/citz-imb-sso-express: any, not relevant
To Reproduce
Steps to reproduce the behavior:
Have code that will call getAuthorizationHeaderValue when loading in a component contained within the SSOProvider.
Ensure the result is printed out
Log in
Refresh the page
See that the wrong value is received, despite being logged in
This branch of PIMS will demonstrate the issue: bcgov/PIMS#2700
Expected Behavior
I would expect this function to wait until it is populated in some way, so not to return a bad value. Maybe it could return a promise instead.
The text was updated successfully, but these errors were encountered:
Description
When a user is already authenticated and on a page, triggering a refresh of the page and immediately calling the
getAuthorizationHeaderValue
function will returnBearer undefined
.It seems like the function is available before the state is repopulated, so state.accessToken is undefined.
Priority
high
- This issue has a substantial impact.Package Versions
@bcgov/citz-imb-sso-react:
1.0.1 and newer
@bcgov/citz-imb-sso-express:
any, not relevant
To Reproduce
Steps to reproduce the behavior:
This branch of PIMS will demonstrate the issue:
bcgov/PIMS#2700
Expected Behavior
I would expect this function to wait until it is populated in some way, so not to return a bad value. Maybe it could return a promise instead.
The text was updated successfully, but these errors were encountered: