Replies: 1 comment 2 replies
-
I would just do it just as a safety net. import { headers } from "next/headers";
headers().set(name, value); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently I am implementing the password reset feature in my Next.js application. Lucia's documentation gives us the following code snippet:
I would like to redirect the user immediately to the login page though without setting the session token (for extra security reasons). However, even though if I would set the cookie and redirect to a protected page, would it still be necessary to set [0]? And yes, how would I do it in a Next Server Action [1]?
[0]
[1]
Beta Was this translation helpful? Give feedback.
All reactions