QuickStart Angular Project is NOT Working

Angular QuickStart (Auth0 Angular SDK Quickstarts: Login) is not working. When I click on “login” I see that the call to “this.auth.loginWithRedirect();” is made. But, nothing happens though.

I’ve used the sample, as well as setup the application on my own multiple times. But, no luck.

Hey there!

Let me try to reproduce that and get back to you soon!

1 Like

Modifying the contents of app.module.ts as follows solved the problem:

AuthModule.forRoot({
      domain: 'xxxxxxxxxxx.auth0.com',
      clientId: 'YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY',
      // ...env.auth,
      httpInterceptor: {
        ...env.httpInterceptor,
      },
    }),
2 Likes

I’m happy to hear it all came together @TEKPartner!

Update on my analysis:

I had not modified the API_IDENTIFIER in the auth_config.json. Those instructions are not included in your help page. Once I put that value in, the use of …env.auth worked.

Please update Auth0 Angular SDK Quickstarts: Login to include instructions on how to replace the value for {API_IDENTIFIER} in auth_config.json

Sure! Thanks for relaying that! I’ll create the GitHub issue for that right away so it can be addressed soon!

Here’s the GitHub issue for that:

https://github.com/auth0-samples/auth0-angular-samples/issues/214

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.