ngx-angularfire-auth
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

NgxAngularfireAuth

This library was generated with Angular CLI version 8.2.13.

Install

npm install ngx-angularfire-auth

Usage

Provide the service:

import { NgxAngularFireAuthService } from 'ngx-angularfire-auth';
 
@NgModule({
  providers: [NgxAngularFireAuthService],
})
export class AppModule {}

Use the service in a component:

import { Component } from '@angular/core';
import { NgxAngularFireAuthService } from 'ngx-angularfire-auth';
 
@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss'],
})
export class AppComponent {
  constructor(private authService: NgxAngularFireAuthService) {}
 
  signIn(email: string, password: string) {
    this.authService
      .signInWithEmailAndPassword(email, password)
      .subscribe(() => {
        // do something
      });
  }
}

Package Sidebar

Install

npm i ngx-angularfire-auth

Weekly Downloads

0

Version

1.0.3

License

MIT

Unpacked Size

78.3 kB

Total Files

27

Last publish

Collaborators

  • joshuacolvin