#A question about authorization
10 messages · Page 1 of 1 (latest)
do you know how can i kick them tho
im using normal javascript
if(!token){ redirect to ./login .js }
but idk how to do it
Well, if you'd use that, it would be automatically there. Passport handles redirects
what about cookies , should i store token in localstorage and cookies ?
or just in one of them
Cookies is good.
[Object: null prototype] {} but it's returning ths