I have worked through the following tutorial: The Complete Guide to Angular User Authentication with Auth0
I have used the source code provided at this repo: GitHub - auth0-blog/angular-2-authentication-tutorial mentioned in the tutorial in order to re-produce this error.
Reproduce the error as follows:
- clone the repo
- run
npm install
in the server folder - run
npm install
in the ng2-auth folder - Spin up the server and angular app mentioned in the tutorial above.
- navigate to the angular app http://localhost:4200
- Click the login link on the top right and login for the first time. This should succeed and you should be able to navigate to the private deals page (click on the private deals link).
- Click on the logout link and attempt to re-login by clicking on the login link. After the second call to the callback url (prompted by the second attempt to login) You should briefly see the private deals url pop into view (indicating that the angular app momentarily recognizes you as being logged in) and then the private deals link will disappear indicating that the app thins you are not logged.
- Thereafter every attempt to login is met with the same behaviour whereby after the callback url process I am NOT logged in.
I get the above behaviour on Chrome Version 65.0.3325.181 (Official Build) (64-bit) Windows 10 Professional.
I DO NOT get the above behaviour on firefox
Can someone please help explain why I am experiencing this strange behaviour