@madcoders/angular-authentication
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

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 {}

Readme

Keywords

none

Package Sidebar

Install

npm i @madcoders/angular-authentication

Weekly Downloads

0

Version

0.0.4

License

none

Unpacked Size

52 kB

Total Files

23

Last publish

Collaborators

  • madcoders