Next.js Discord

Discord Forum

Code Review Request for my Log-in Page

Unanswered
Sun bear posted this in #help-forum
Open in Discord
Sun bearOP
Hello, I have a log-in page which I managed to get working recently and I would really appreciate if someone with knowledge can look at my code and let me know if the code is secure and if it's production ready or not. Basically if you see issues with the code I'd appreciate if you'd let me know about it so that I can try and address those.

The page is split into 3 parts, because I'm making use of both client and server components. This code is for my platform which will be used by other people so I am trying to make sure that it's safe and secure for production.

app/[lang]/login/server-action.ts:
https://paste.ec/paste/hK4YFHbD#6ocnq8dpiVoatDLHgUkQgEUxE9Hgm9PrW8mfsSnygyd

app/[lang]/login/login-form.tsx:
https://paste.ec/paste/4FCgD+s6#EOV+n+Yl-Jdm1p45i3DAQtfH5SFyYSWas5ZJNcxL/Br

app/[lang]/login/page.tsx:
https://paste.ec/paste/EEX2fHHf#cJ8Xmk2vxruDkM1Z7knkiNKWxSATl0jj4RBNCKxMjFL

0 Replies