next-auth

Im working on auth in this next app using next auth with google and credentials providers, and custom sign in and register page .
I definitely don't knw if I'm doing it in the right safest way to prevent my data from attackers.
I made only the
play
route redirect u to the login page when u're not logged in i'll do the same for the rest of the pages later except blogs, home, sign in routes
Also the dashboard route will be protected route with user based auth
For now i wanna knw if my method is correct or not and what the things that i missed or did wrong.
This is the github repo pls feel free to check it out :
https://github.com/CLOG9/PuzChess/tree/main
GitHub
a new chess puzzles platform made with next js. Contribute to CLOG9/PuzChess development by creating an account on GitHub.
Was this page helpful?