Replies: 2 comments 6 replies
-
Same error: |
Beta Was this translation helpful? Give feedback.
0 replies
-
You are seeing this error because you are invoking the server action directly in a server component render. You should pass the server action to action attribute of |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Enviromnent
I am trying to call the signOut based on API status code 401
This raised a cookies error
Error: Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#cookiessetname-value-options
My understanding was that it is possible to call signOut on the server, but it seems not working.
Beta Was this translation helpful? Give feedback.
All reactions