Hello everyone, I am really confused about which authentication flow I should follow and how to implement it.
I have a web app demo consists of a dozen of HTML page built on top of Bootstrap and some Vanilla JS inside them to fetch data. They are linked through standard
<a> attribute. The datas are fetched from a .NET Core API.
I am trying to follow the Single Page App flow with the Universal Login method but I am not able to retrieve the token and the user because the
loginWithRedirect() function makes a new request and then I lose everything when the browser loads back the index page (the continuation of the Promise is aborted).
In order to have access to the Auth0 Client object in every page, I tried to serialize and save the Auth0 Client object inside the localStorage but it gives me an error due to cyclic properties inside it.
Here the code:
Thanks in advance