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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get Server Session in Server Actions #7460
Comments
It looks like this issue did not receive any activity for 60 days. It will be closed in 7 days if no further activity occurs. If you think your issue is still relevant, commenting will keep it open. Thanks! |
this is an upstream issue with Next.js that is linked above. Please try |
i think this is unsecure and everybody should avoid it! maybe it only make sence if there is encrypted token in the session, which can be checked on server side (server action body) correct me please if i am wrong |
An adaptation of this worked for me (source: https://www.reddit.com/r/nextjs/comments/13eb1vj/comment/jjptpkx/?utm_source=reddit&utm_medium=web2x&context=3) My server action looks like this:
|
Works a treat, thank you! |
Question 馃挰
How to get the session inside a Server Actions?
Show this error:
How to reproduce 鈽曪笍
Contributing 馃檶馃徑
Yes, I am willing to help answer this question in a PR
The text was updated successfully, but these errors were encountered: