Hi @mathias-onu,
Welcome to the Auth0 Community!
I understand you are getting an Unauthorized
error in your Angular Sample app. I just cloned that same project and was able to login. I think this is a simple configuration issue. Can you kindly provide me the name of your tenant so I can take a look?
Regarding the two log events on login, this is expected behavior. There is a Successful Login and (usually) a Successful Exchange. The Successful Exchange log indicates that there was a successful exchange of an authorization code for an Access Token. This is how the Authorization Code Flow works.
Relevant documentation:
- Authorization Code Flow
- Add Login Using the Authorization Code Flow
- Call Your API Using the Authorization Code Flow
Best,
Mary Beth