0.0.15 • Published 6 years ago

@softwhisper/component-auth v0.0.15

Weekly downloads
1
License
UNLICENSED
Repository
gitlab
Last release
6 years ago

SoftWhisper Component

Auth

Technology

System Requirements

  • NPM
  • npm i -g typescript -D
  • npm i -g typings -D

Dependencies

How to install

  • npm i -S @softwhisper/component-auth
  • Add import to app.module.ts using your configuration object: SwAuthModule.initializeApp(config)

How to use

You can use the following directives in your app:

  • sw-auth-signin
  • sw-auth-signout
  • sw-auth-signup

You also have access to AuthService:

import { AuthService } from '@softwhisper/auth/services/auth';

export class YourClass {
    constructor(public authService: AuthService) {}
}

Displaying elements when the user is authenticated:

<div *ngIf="authService.user | async">...</div>
0.0.15

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.8

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago