5 ms·
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 sid
by alexanderblom 12y 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.
- robotrobot 12y agoWe've been doing this for a while in our angular apps using response interceptors: http://engineering.talis.com/articles/elegant-api-auth-angular-js/ http://engineering.talis.com/articles/elegant-api-auth-angul...
- flaie 12y agoThis is a great write-up.