kishan_6969
KKinde
•Created by kishan_6969 on 12/28/2024 in #💻┃support
refresh token guide needed
i would like to know how can i refresh the jwt token in client component in nextjs, does it work in server component only?, i mean if some feature or properties are changed then they are reflected in new token right?, so how do i refreshtoken without the need of logout and login, i searched some more docs, and got something related to this on your issues in github, i think this is what i am looking for : https://github.com/kinde-oss/kinde-auth-nextjs/pull/254, but i not able to understand it, can u help me out here, also does this work for properties i defined in my kinde account, like one is isProfileComplete, so on basis of this i want to redirect user, and in backend i am thinking of using a middleware to protect my routes but for that i need the updated refreshtoken, can u help me out here?
9 replies
KKinde
•Created by kishan_6969 on 12/27/2024 in #💻┃support
JWT guide needed
understand this scenario, my app requires user to fill up extra form for other details after authentication, i want that user should be able to use the platform's some routes if the user has completed the form fillup so i am using nextjs for frontend and nodejs express for backend i am thinking of using a flag like isProfileComplete that i will get from jwt token and then create a middleware to protect the routes on basis of the flag in token, how to add this in jwt then fetch it in backend and then alter the boolean value of it
9 replies