When I’m printing the results to the screen I can see that it returns
undefined
.
@liork.cryptobiu where you get undefined
?
When I’m printing the results to the screen I can see that it returns
undefined
.
@liork.cryptobiu where you get undefined
?
At the callback
and in any other pages.
@liork.cryptobiu please share your code
@liork.cryptobiu
Just Run, You successfully get user info that means your authentication done successfully.
Why are you printing handleLoginCallback
?. it does not return anything.
Also, you requesting routing is wrong. Don’t use href
use routerLink
otherwise it will refresh your page and token will went from memory.
it should be <a mat-list-item routerLink="/execution">Execution</a>
and I am getting this.auth.isAuthenticated()
is true
in your execution component.
Note: You can use localstorage to store token so that it will be available after refresh page.
Anyway, it is now your SAP problem, not an auth0 problem.
@kdhttps Thank you for your help!
As you said the problem was the using href
instead of routerLink
.
Now it works perfect!
You can close the issue.
Lior
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.