Skip to content
Login Authentication (NodeJS Express)
Profile icon
ObiVibKenobi

Hi! If you’re reading this, thanks!
I recently began a project that may take a while, and decided to add in a log in system. It’s pretty easy to use Repl.DB, but here’s the problem - after someone logins, and clicks a button, they get redirected. What if someone just types that link straight into the browser? I know there’s a way to stop that from happening, but how?

Thanks!

You are viewing a single comment. View All
Profile icon
Squirrel777

Maybe you can use sessionStorage to prevent that and to redirect to the login page