-
Notifications
You must be signed in to change notification settings - Fork 10
Closed
Labels
AngularChalkDXReactSDK Corerelating to the framework-agnostic core of the SDKsrelating to the framework-agnostic core of the SDKsVuebugSomething isn't workingSomething isn't working
Description
isLoggedIn set to false after token is refreshed
Description
After a token is refreshed (via setting shouldAutoRefresh = true) the isLoggedIn is switched to false and does not return to true unless the page is refreshed.
Affects package
@fusionauth/react-sdk
Affects versions
@fusionauth/react-sdk@2.1.0 only version attempted
Steps to reproduce
Steps to reproduce the behavior:
- Set a low JWT expiry expiration for testing (I used 60 seconds) at the FA server
- Ensure shouldAutoRefresh = true in the props to
FusionAuthProvider - Create a component somewhere under
FusionAuthProviderwith a hook to watch theisLoggedInvalue.
const Component = () => {
const { isLoggedIn } = useFusionAuth();
useEffect(() => {
console.log({ isLoggedIn });
}, [isLoggedIn]);
return null;
}Once the token is refreshed (within 60 seconds) the isLoggedIn switches to false and does not go back to true.
Expected behavior
isLoggedIn remains true
Screenshots
If applicable, add screenshots to help explain your problem.
Platform
(Please complete the following information)
- Device: Desktop
- OS: MacOS
- Browser + version Chrome 124
Community guidelines
All issues filed in this repository must abide by the FusionAuth community guidelines.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
AngularChalkDXReactSDK Corerelating to the framework-agnostic core of the SDKsrelating to the framework-agnostic core of the SDKsVuebugSomething isn't workingSomething isn't working