Steps:
- npm i
- npm start
constructor(...
private authService: AngularJwtAuthService,
...) {}
...
];
this.authService.setAuthToken(data.token);
public getAuthToken(): string {}
public setAuthToken(token: string): void {}
public removeToken(): void {}
public isTokenExpired(): boolean {}