Skip to content

Instantly share code, notes, and snippets.

View stephengardner's full-sized avatar

Stephen Gardner stephengardner

View GitHub Profile
{ 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],