#Login and set cookies - that is correct?

3 messages · Page 1 of 1 (latest)

burnt salmon
#

Hi.
I'm trying to create a login page, using Next 14 and actions.
I have a login page with a button calling a function in a action.ts (use server).
In API, i am using response.setCookie (NestJs) but not workin using server actions.

This login function return a JWT token and a use cookies().set to save to cookies.
That is corret way to do this?
(sorry for bad english, trying to learn another language)

little epochBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

sullen cargo