- After login read token from header
- Decode (base64) the second segment (payload) which brings the claims
- Store the token
- Memory
- localStorage
- Approach for subsequent requests
- Add to single $http request
- Add to $HttpProvider common headers
- Using $Http Interceptors
Presentation
Code
The code for this presentation can be found at this location:
Thanks
Thank you for the presentation. It is helpful in understanding the challenges for web development in Single Page Application.
ReplyDelete