auth0-blog / angular2-authentication-sample

This is a sample that shows how to add authentication to an Angular 2 (ng2) app
MIT License
966 stars 334 forks source link

Update Angular2 package version error calling to secure api #48

Open diegomon opened 8 years ago

diegomon commented 8 years ago

If I update the package version of Angular from 2.0.0-beta.0 to 2.0.0-beta.1. I get the following error when I call to the secure api through authHttp. TypeError: First argument must be a url string or Request instance. at Object.makeTypeError (exceptions.js:69) at Http.request (http.js:122) at AuthHttp._request (angular2-jwt.js:74) at AuthHttp.requestHelper (angular2-jwt.js:83) at AuthHttp.get (angular2-jwt.js:86) at Home._callApi (home.ts:55) at Home.callSecuredApi (home.ts:40) at AbstractChangeDetector.ChangeDetector_Home_0.handleEventInternal (viewFactory_Home:173) at AbstractChangeDetector.handleEvent (abstract_change_detector.js:57) at AppView.triggerEventHandlers (view.js:213) It seems there is a dependency of angular2-jwt to the older version. Is there an incompatibility between http.get in beta.0 and beta.1?.

austinheinrichs commented 8 years ago

I am also getting the same error.