Y
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
robotrobot
4297 days 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...
link
flaie
4297 days ago
This is a great write-up.
link