Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

angular 2 and Ng-token-Auth

Hi I'm just starting to learn Angular 2. I understand Angular 1 libraries don't work with Angular 2. Is there a Ng 2 version of Ng-Token-Auth? Does anyone have experience with this, doing authentication using a rails devise-token-auth backend? thanks.

like image 475
Kelvin Avatar asked Dec 11 '25 06:12

Kelvin


1 Answers

The angular2-token library could handle this task for you, since it is based on Ng-Token-Auth. As of today, there are a few limitations though :

  • The library depends on the latest versions of Angular2 (2.0.2 as of today), so it's probably better to be up-to-date in your project too
  • angular2-token uses the new Angular 2 router, which is not supported by frameworks such as Ionic 2 yet. However if you're using Ionic 2, you should soon be able to give it a try according to this post.

Hope this helps

like image 194
jean-baptiste Avatar answered Dec 12 '25 20:12

jean-baptiste



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!