ng-token-auth icon indicating copy to clipboard operation
ng-token-auth copied to clipboard

Cannot read property 'config' of undefined

Open deerawan opened this issue 8 years ago • 1 comments

Version

0.0.24

Screenshot

image

image

Issue

Sometimes I got resp as 'false' or 'null' in this line https://github.com/lynndylanhurley/ng-token-auth/blob/master/dist/ng-token-auth.js#L803 hence throw the error when execute resp.config

Should we add data validation here for resp?

deerawan avatar Jul 13 '16 12:07 deerawan

Same here. Don't know if it's Angular's problem triggering a 'ghost' responseError after I get 401 from $auth.validateToken()...

Charlie-Hua avatar Aug 31 '16 17:08 Charlie-Hua