💻 Tech
If you’ve just set up your new auth0 tenant and created (or used the auth0 angular demo repo), you’ve probably encountered this error when your Angular app tries to authenticate with auth0: Unauthorized
with status 401
. Even if you followed the instructions on how to populate the config and filled in the right details, it still shows. This is a bug that is reported here last 2020 and surprisingly still exists now.
The solution is quite simple:
- Change your application’s type from SPA to Regular Web Application.
- Set the Token Endpoint Authentication Method from Post to None.
- Bring back your application’s type to SPA.
Fortunately, people report issues, and solutions were documented.