Skip to content

Instantly share code, notes, and snippets.

@gdyrrahitis

gdyrrahitis/app.module.ts Secret

Last active Aug 18, 2018
Embed
What would you like to do?
// imports ommitted for brevity
@NgModule({
declarations: [
// declarations ommitted for brevity
],
imports: [
// imports ommitted for brevity
JwtModule.forRoot({
config: {
tokenGetter: () => localStorage.getItem('token')
}
})
],
providers: [
// providers ommitted for brevity
],
bootstrap: [AppComponent]
})
export class AppModule { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment