0.0.4 • Published 6 years ago
@madcoders/angular-authentication v0.0.4
angular-jwt-auth
Use Auth Service
1. Import AngularJwtAuthService into component
constructor(...
private authService: AngularJwtAuthService,
...) {}
...
];2. After success login set jwt token
this.authService.setAuthToken(data.token);AngularJwtAuthService methods
public getAuthToken(): string {}
public setAuthToken(token: string): void {}
public removeToken(): void {}
public isTokenExpired(): boolean {}0.0.4
6 years ago