Right now I have a RESTful API that's returning a refreshed JWT 
Authorization header token every time my endpoint is accessed by my 
AngularJS service. I want to have a user's browser save this token (as part 
of the session and in localStorage) by accessing it through the response 
object created by $httpProvider.intercepters. Even though I am able to see 
the token in question in my browser, I am unable to grab hold of that value 
in my interceptor.

One thing I discovered was when I ran console.log('Etag: ' + 
response.headers('Etag')); sometimes I got values, sometimes I didn't. The 
times I did were when I pulled down HTML views, and I got null when I was 
pulling down JSON data from my endpoints.

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to