| JS SDK doesn't provide a HTTP layer so, it's not easy to handle that in the SDK. We decided to leave it to the developer try/check it before every request.
authService.extract().updateToken(30).success(function() { |
loadData(); |
}).error(function() { |
alert('Failed to refresh token'); |
);
|
PS: It already documented in mobile-docs |