Relative Content

Tag Archive for node.jsexpressjwt

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.