Hacker News new | ask | show | jobs
by alexanderblom 4297 days ago
One way of doing it is having an out-of-bands way of refreshing tokens in responses. So if the token is about to expire you can return an updated one on the side-channel.
1 comments

We've been doing this for a while in our angular apps using response interceptors: http://engineering.talis.com/articles/elegant-api-auth-angul...
This is a great write-up.