Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
alexanderblom
· 12y ago · 0 comments
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.
Comments
[–]
robotrobot
12y ago
We've been doing this for a while in our angular apps using response interceptors:
http://engineering.talis.com/articles/elegant-api-auth-angul...
[–]
flaie
12y ago
This is a great write-up.