Coder Social home page Coder Social logo

Comments (7)

mooreds avatar mooreds commented on July 29, 2024 1

I'm going to track the access cookie remaining in a separate issue: #27

from fusionauth-react-sdk.

joshdura avatar joshdura commented on July 29, 2024

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.

mooreds avatar mooreds commented on July 29, 2024

Hmm, seems to me that the access_token needs to be removed on logout.

from fusionauth-react-sdk.

joshdura avatar joshdura commented on July 29, 2024

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.

mooreds avatar mooreds commented on July 29, 2024

I think the SDK should handle that. I think we can get that fixed in the next few days.

from fusionauth-react-sdk.

mooreds avatar mooreds commented on July 29, 2024

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.

JakeLo123 avatar JakeLo123 commented on July 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.