# Issues with the Angular2 Quickstart

**URL:** <https://community.auth0.com/t/issues-with-the-angular2-quickstart/6234>\
**Category:** Get Help\
**Tags:** angular2, angular2-jwt, quickstart, angular-cli\
**Created:** [April 17, 2017, 9:45pm UTC](https://community.auth0.com/t/issues-with-the-angular2-quickstart/6234 "2017-04-17T21:45:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![g.duffield](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/g.duffield/32/7103_2.png) [@g.duffield](https://community.auth0.com/u/g.duffield)\
**Post date:** [April 17, 2017, 9:45pm UTC](https://community.auth0.com/t/issues-with-the-angular2-quickstart/6234/1 "2017-04-17T21:45:01Z")

</div>

The quick start tutorial has various issues if you are trying to use this with the **angular-cli** which if you are using Angular (4) you should be. Including issues with the AUTH\_PROVIDERS not working, however there are other workarounds for this.

Another of the issues is that the use of angular2-jwt is incorrect and does not work. There’s an issue where `tokenNotExpired` always returns `false`.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [April 17, 2017, 10:39pm UTC](https://community.auth0.com/t/issues-with-the-angular2-quickstart/6234/2 "2017-04-17T22:39:17Z")

</div>

As a workaround to the `tokenNotExpired` issue you can:

- Rename the storage item; change from `id_token` to `token`

**OR**

- Change the call to `tokenNotExpired` to use the key name used for local storage:

* * *

The content above was originally provided by @g.duffield in the question body itself, I’m providing it as an answer for discoverability reasons.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [April 17, 2017, 10:41pm UTC](https://community.auth0.com/t/issues-with-the-angular2-quickstart/6234/3 "2017-04-17T22:41:41Z")

</div>

@g.duffield I provided your workarounds for the `tokenNotExpired` issue as an answer so that’s it’s easier to locate. If you want you can provide it as your own answer and I’ll delete mine. Thanks for taking the time to document this.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:53am UTC](https://community.auth0.com/t/issues-with-the-angular2-quickstart/6234/4 "2018-03-02T05:53:17Z")

</div>


