UNPKG

@nowzoo/ngx-firebase-auth

Version:

Angular components for Firebase email-first sign in and out-of-band (oob) actions (reset password, etc).

39 lines (38 loc) 1.56 kB
import { OnInit, EventEmitter } from '@angular/core'; import { AngularFireAuth } from 'angularfire2/auth'; import { ActivatedRoute, Router } from '@angular/router'; import { auth } from 'firebase/app'; import { FormGroup, FormControl } from '@angular/forms'; import { NgxFirebaseAuthService } from '../../ngx-firebase-auth.service'; export declare class SignInOauthComponent implements OnInit { private _afAuth; private _svc; private _route; private _router; providerId: string; initialError: auth.Error; useOAuthPopup: boolean; oAuthProviderFactory: (providerId: string) => auth.AuthProvider; email: string; remember: boolean; success: EventEmitter<auth.UserCredential>; emailChange: EventEmitter<string>; rememberChange: EventEmitter<boolean>; error: EventEmitter<auth.Error>; screen: 'wait' | 'methodError' | 'retry'; methodError: auth.Error | any; getOAuthProviderIcon: (id: string) => string; getOAuthProviderName: (id: string) => string; fg: FormGroup; rememberFc: FormControl; formId: string; constructor(_afAuth: AngularFireAuth, _svc: NgxFirebaseAuthService, _route: ActivatedRoute, _router: Router); readonly auth: auth.Auth; readonly authService: NgxFirebaseAuthService; readonly route: ActivatedRoute; readonly router: Router; ngOnInit(): void; oAuthSignIn(id: string, forceRedirect?: boolean): void; handleOAuthError(error: auth.Error, providerId?: string): void; getOAuthProvider(id: string): Promise<auth.AuthProvider>; }