bik
bik

Reputation: 339

Angular2 single sign on with Auth0?

I'm trying to use auth0 sso (single sign on ) with angular 2 but it doesn't work , and my question it's that angular 2 support sso authentification or not ? or is there any other solution ?

Upvotes: 1

Views: 367

Answers (1)

Aniruddha Das
Aniruddha Das

Reputation: 21688

Make sure Both of your domains are sub domains of a domain as local storage works in same domain (local storage is domain specific)

you can write a service where you can use localStorage.getItem(key); to retrive data from local storage and use it in your application

In angularJS use angularJS code to put and get data from the local storage and in angular 2/4 use typescript code to get/put into local storage.

Upvotes: 1

Related Questions