Angular SDK - IsAuthenticated False Even After Successful Authentication

Please include the following information in your post:

  • Which SDK this is regarding: e.g. auth0-angular

  • SDK Version: e.g. 1.19.0

  • Platform Version: e.g. Angular 13

  • Code Snippets/Error Messages/Supporting Details/Screenshots:

I have created a brand new Angular application using the tutorial Auth0 Angular SDK Quickstarts: Login. I am able to successfully login but the application doesn’t seem to recognize the authentication state. I have configured the cacheLocation to localStorage but I do not see any token being stored.

My configuration:

AuthModule.forRoot({
      domain: 'validDomain',
      clientId: 'validClient',
      audience: "validAudience",
      errorPath: '/welcome/error',
      cacheLocation: 'localstorage',
      useRefreshTokens: true,
    })

I am able to run the sample app from the tutorial without any issue against the same Auth0 application.

Any idea what I am doing wrong?

Is this a feature request or bug report? Bug Report