Skip to content Skip to sidebar Skip to footer

Vuejs Get Token From Header

I have a response from server and there are auth token, max age and some other values. In Postman it looks like: I want to set it to localStorage but have no idea how to get value

Solution 1:

Use headers

response.headers.get('Authorization');

Post a Comment for "Vuejs Get Token From Header"