Comments (7)
I'm going to track the access cookie remaining in a separate issue: #27
from fusionauth-react-sdk.
Not sure if this is part of the same issue or not, but will post this here until confirmed otherwise. When I login for the first time (when the access_token
cookie doesn't exist and the POST /token-exchange
endpoint is called), the user
cookie is correctly populated. However, when I logout and then log back in, the access_token
cookie remains the same, and the user
cookie is set to the string undefined
.
from fusionauth-react-sdk.
Hmm, seems to me that the access_token
needs to be removed on logout.
from fusionauth-react-sdk.
Hmm, seems to me that the
access_token
needs to be removed on logout.
Yeah, that's what I was thinking as well. Is that something that should be handled on my side? Or something that the SDK should be taking care of?
from fusionauth-react-sdk.
I think the SDK should handle that. I think we can get that fixed in the next few days.
from fusionauth-react-sdk.
Okay, heard a bit from one of the devs who wrote this. They pointed me to https://github.com/FusionAuth/fusionauth-example-react-sdk/blob/main/server/routes/token-exchange.js#L35 and said that for some reason it isn't being populated. Need to do some more research.
from fusionauth-react-sdk.
Looking at the provider code, there are some instances where user
and isAuthenticated
are not set at the same time. There are cases where they may be out of sync. We can adjust the code to handle these and add tests to watch for future breakage.
This PR inadvertently addresses some of it — we can address the rest once it goes in.
from fusionauth-react-sdk.
Related Issues (20)
- Why is `Content-Type` set for empty requests? HOT 4
- Source Maps Missing HOT 1
- allow withRole to take an array of values
- No error message when the wrong client id is provided HOT 4
- refreshToken() does not work without implicitly setting tokenRefreshPath HOT 2
- customize the name of the `isAuthenticated` cookie HOT 2
- /me fetch failure causing infinite loop HOT 1
- Tests causing 'not wrapped in act(...)' warning
- Update README to mention hosted endpoint support
- Remove `async` from non-async function definitions
- Repo contains both `yarn.lock` and `package-lock.json` HOT 1
- Do not use multiple package managers
- Specify node/npm version
- Provider needs error handling
- Correct component tests usage of testing-library and async
- v1.0.5 doesn't contain any code HOT 2
- [RFC] Utilize Storybook for UI development HOT 5
- [RFC] Utilize Mock Server Worker for tests HOT 5
- [RFC] Refactor FusionAuthProvider HOT 5
- Inline documentation for SDK
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fusionauth-react-sdk.