open-index/open-npm huggingface dataset:
npm package: @madcoders/angular-authentication
Description: ## Use Auth Service
Author: Maxim Dobrolinsky
Latest version: 0.0.4

## angular-jwt-auth

## Use Auth Service

### 1. Import AngularJwtAuthService into component
```javascript
constructor(...
            private authService: AngularJwtAuthService,
            ...) {}
  ...
];
```

### 2. After success login set jwt token
```javascript
  this.authService.setAuthToken(data.token);
```

## AngularJwtAuthService methods
```javascript
public getAuthToken(): string {}

public setAuthToken(token: string): void {}

public removeToken(): void {}

public isTokenExpired(): boolean {}
```