This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ JwtModule } from '@auth0/angular-jwt'; | |
import { HttpClientModule } from '@angular/common/http'; | |
// Create a Factory for our JwtModule config since Angular doesn't allow functions in decorators. | |
// Also, we have to add the export keyword, otherwise Angular complains again | |
export function JwtModuleConfigFactory() { | |
return localStorage.getItem('access_token'); | |
} | |
@NgModule({ | |
bootstrap: [AppComponent], |