-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GetSession in gin-contrib/sessions returning nil of token #219
Comments
Having similar issues with similar looking code. |
Facing similar issue, did you find the solution ? |
I haven't solved it yet. It's part of a side project for me, and I've had other issues to deal with. I might end up implementing sessions differently if I can't figure it out. |
maybe check your cookie is setting? `
` |
I'll try that and update here with what I find. |
0
So, i just created a backend setting session and getting session for my app. I would like to access via endpoint getting session i did that, but always session value returning nil even if i had set token inside session via SetSession function on userLogin.
I am using GIN framework + Gin/sessions on backend and Next.js on frontend.
I just tried checking session inside SetSession and there everything working fine, but when request come in from frontend hook, session returning nil which giving me message "Session expired" and error: true.
It should return me token and next check token via function and and the end return for the frontend token to let user enter /dashboard page.
I don't have any more idea why this happen and what can i do with that.
Code:
The text was updated successfully, but these errors were encountered: