Where do i store my jwt for authorization?
I searched many article for days i find they sending the token like this
401. Unauthorized (ExpressJS / Passport JWT)
I’m trying to understand why user authorization works on localhost frontend, but doesn’t work on 127.0.0.1.
Expressjs access_token not setting in cookies for 2nd time
Am using JWT
and setting cookies from backend to frontend. Am using expressjs
and testing API I’m using postman. So every time I call an api at first i update the access token (where i generate new access_token and refresh_token and set it as res.cookie
). Its works fine if i make request or hit api under access_token
expire time. But The problem is it can’t find access_token
in isAuthenticated
function if i call it after access_token
expire.