14 lines
327 B
JavaScript
14 lines
327 B
JavaScript
class HttpManager extends SFHttpManager {
|
|
|
|
constructor(storageManager, $timeout) {
|
|
// calling callbacks in a $timeout allows UI to update
|
|
super($timeout);
|
|
|
|
this.setJWTRequestHandler(async () => {
|
|
return storageManager.getItem("jwt");
|
|
})
|
|
}
|
|
}
|
|
|
|
angular.module('app').service('httpManager', HttpManager);
|