Commit e3f3de3a authored by Eduardo Sanz García's avatar Eduardo Sanz García
Browse files

docs: fixed imports in the examples in the README

parent df63a192
Pipeline #2731 passed with stages
in 3 minutes and 13 seconds
......@@ -47,6 +47,9 @@ import {
import {
AuthModule
} from 'angular-aap-auth';
import {
JwtModule
} from '@auth0/angular-jwt';
@NgModule({
declarations: [
......@@ -55,9 +58,9 @@ import {
imports: [
BrowserModule,
AuthModule.forRoot(),
JwtModuld.forRoot({
JwtModule.forRoot({
config: {
tokenGetter: () => localStorage.getItem( 'id_token')
tokenGetter: () => localStorage.getItem('id_token')
}
})
],
......@@ -195,6 +198,9 @@ import {
import {
AuthModule
} from 'angular-aap-auth';
import {
JwtModule
} from '@auth0/angular-jwt';
export function getToken(): string {
return localStorage.getItem('jwt_token') || '';
......@@ -219,7 +225,7 @@ export function removeToken(): void {
tokenUpdater: updateToken,
tokenRemover: removeToken // Optional
}),
JwtModuld.forRoot({
JwtModule.forRoot({
config: {
tokenGetter: getToken,
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment