MCPcopy Index your code
hub / github.com/auth0/angular2-jwt / forRoot

Method forRoot

projects/angular-jwt/src/lib/angular-jwt.module.ts:39–55  ·  view source on GitHub ↗
(options: JwtModuleOptions)

Source from the content-addressed store, hash-verified

37 }
38 }
39 static forRoot(options: JwtModuleOptions): ModuleWithProviders<JwtModule> {
40 return {
41 ngModule: JwtModule,
42 providers: [
43 {
44 provide: HTTP_INTERCEPTORS,
45 useClass: JwtInterceptor,
46 multi: true,
47 },
48 options.jwtOptionsProvider || {
49 provide: JWT_OPTIONS,
50 useValue: options.config,
51 },
52 JwtHelperService,
53 ],
54 };
55 }
56}

Callers 3

app.module.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected