Giter VIP home page Giter VIP logo

Comments (7)

50BytesOfJohn avatar 50BytesOfJohn commented on August 24, 2024

Can be connected to: kinde-oss/kinde-typescript-sdk#59

Also, just to mention, other cookie, access token, refresh token and id token are set properly. Manually setting user cookie fixes the issue.

from kinde-auth-nextjs.

DanielRivers avatar DanielRivers commented on August 24, 2024

Does this happen on 2.2.3?

Last version had a dependancy update on the cookie package

from kinde-auth-nextjs.

50BytesOfJohn avatar 50BytesOfJohn commented on August 24, 2024

Same thing with 2.3.3, even checked with Next.js 14.2.1. Not sure what's happening, maybe the root cause is somewhere else. As this happened for me without updating libraries. Because I worked on e2e tests, and they started to fail with this error. I was not doing any changes on Kinde, or in packages, or not touching auth stuff at all.

from kinde-auth-nextjs.

50BytesOfJohn avatar 50BytesOfJohn commented on August 24, 2024

Also wondering, since all other cookies, access_token, refresh_token, id_token are set properly, then can it be issue with cookies at all? I've tried yesterday to trace the exact code, but couldn't find it. I'll try again today. Maybe for some reason user cannot be fetched from kinde and that's why only the user cookie is not set.

from kinde-auth-nextjs.

50BytesOfJohn avatar 50BytesOfJohn commented on August 24, 2024

One thing interesting for me based on typescript-sdk. Shouldn't be the user object created from id_token? Like it's done here: Link and not from the user cookie?

from kinde-auth-nextjs.

peterphanouvong avatar peterphanouvong commented on August 24, 2024

Hey @50BytesOfJohn, thank you for raising. Seems like the TS SDK stopped setting the 'user' cookie. So In 2.2.5-1 I removed the dependency on the cookie and grabbed the data from the id_token instead

from kinde-auth-nextjs.

50BytesOfJohn avatar 50BytesOfJohn commented on August 24, 2024

Thanks, @peterphanouvong. Resolved.

from kinde-auth-nextjs.

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.