Home > Net >  Why @auth0/angular-jwt not woking for Angular9?
Why @auth0/angular-jwt not woking for Angular9?

Time:12-05

I tried to install @auth0/angular-jwtfor angular9 project.

module.ts

  imports: [
    HttpClientModule,   
    BrowserAnimationsModule,

    JwtModule.forRoot({
      config: {
        tokenGetter: tokenGetter,
        allowedDomains: ["example.com"],
        disallowedRoutes: ["http://example.com/examplebadroute/"],
      },
    }),
  ]

but when run the program it give me following error enter image description here

@auth0/angular-jwt

CodePudding user response:

Quick look at the @auth0/angular-jwt npm site:

Supported Angular versions

This project only supports the actively supported versions of Angular as stated in the Angular documentation. Whilst other versions might be compatible they are not actively supported

The active versions of Angular are 13 and above: https://angular.io/guide/releases#actively-supported-versions

  • Related