Looking through the source, I couldn't determine if there was any way at present to parse response headers for any of the standard resource requests.
My use case is that I'm working with an external token authentication library that implements sliding-sessions using response headers for each request.
I think something to the effect of the following would be ideal:
Order.find(1)
.then (order, response) =>
console.log("Here's the new access token:", response.headers['access-token']);
Looking through the source, I couldn't determine if there was any way at present to parse response headers for any of the standard resource requests.
My use case is that I'm working with an external token authentication library that implements sliding-sessions using response headers for each request.
I think something to the effect of the following would be ideal: