Closed xskid closed 5 years ago
For does with this problem, need o inject jwtInterceptorProvider
and put tokenGetter
.
there, not into jwtOptionsProvider
.
appConfig.$inject = ["$httpProvider", "jwtOptionsProvider", "jwtInterceptorProvider"];
function appConfig($httpProvider, jwtOptionsProvider, jwtInterceptorProvider) {
jwtOptionsProvider.config({
whiteListedDomains: [
'localhost'
]
});
jwtInterceptorProvider.tokenGetter = tokenGetter;
$httpProvider.interceptors.push('jwtInterceptor');
}
Basic usage does not mention that.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you have not received a response for our team (apologies for the delay) and this is still a blocker, please reply with additional information or just a ping. Thank you for your contribution! 🙇♂️
And then
error
Cannot read property 'url' of undefined
myService is undefined
I've tried several ways, without success yet