Axios - extracting http cookies and setting them as authorization headers
问题 I am building authentication for my application and I am using access and refresh tokens. Upon user login, the API issues 3 things refresh token access token string with headers and payload access token string with signature These tokens are all jwt tokens. This article discusses why access tokens should be split. using express, I send the tokens back to the browser in my controller like so: res.cookie( ACCESS_TOKEN_COOKIE_HEADER_PAYLOAD, headerAndPayload, COOKIE_OPTIONS, ) res.cookie( ACCESS