#A question about authorization

10 messages · Page 1 of 1 (latest)

round jasper
#

I suggest using passport.js with sessions instead :) it's safer and easier to implement.

granite relic
#

im using normal javascript

#

if(!token){ redirect to ./login .js }

#

but idk how to do it

round jasper
#

Well, if you'd use that, it would be automatically there. Passport handles redirects

granite relic
#

or just in one of them

granite relic