I created a new SPA application, downloaded the code, configured http://localhost:3000 where I was asked to and when running the code (javascript) I get 401 for token endpoint with response “{“error”:“access_denied”,“error_description”:“Unauthorized”}”.
I saw that sometimes changing between SPA and regular web and back again helps but it did not help to solve my issue.