Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49172

Auth interceptor isn't firing

$
0
0

@Tribe wrote:

I'm using https://github.com/witoldsz/angular-http-auth/ as my auth interceptor but for some reason it's not firing.

Its job is to fire the "event:auth-loginRequired" event whenever the error code 401 is received.

In my app.js on run:

$rootScope.$on('event:auth-loginRequired', function(event, data){
console.log('login required',data);
});

Any idea why it won't fire? No console errors, nothing. I've included the plugins JS file, added it to the modules etc. but having no luck.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49172

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>