Thank you for the answer.
The reason I made those changes was because if I used “declare var auth0: any;” i’d get “auth0 is not defined” error.
I fixed this by including Auth0.js in my program by adding: <script src="https://cdn.auth0.com/js/auth0/8.0/auth0.min.js"></script>
and adding import * as auth0 from 'auth0-js';
in my auth.service.ts.
I now use the exact same auth.service.ts as provided in the mentioned documentation and I get through with no errors. However upon logging in I get a Post error.
I just made a seperate post describing my problem. Using Auth0.js method loginWithCredentials triggers a 404 - Auth0 Community.