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

0.2.0 • Public • Published

FirebaseUi-Auth

FirebaseUI Authentication provides a drop-in auth solution that handles the UI flows for signing in users on your Firebase application.

Compatibility

This library can be easily integrated into your project with minimal configuration.

Installation

Install the library using npm:

npm install firebaseui-auth --save

Usage

Implement the Firebase login component in your application:

<firebase-login [auth]="auth" [uiConfig]="uiConfig"></firebase-login>

Required Properties

  • auth: An instance of Firebase Auth. This is required for the component to function properly.
  • uiConfig: Configuration object as defined in the FirebaseUI Web documentation. See the details below or visit the official configuration guide.

Configuration

Configure the auth module as per the FirebaseUI documentation:

Configuration Guide

Callback Handling

Handle sign-in events using the provided callbacks:

<firebase-login
  [auth]="auth"
  [uiConfig]="uiConfig"
  (signInSuccessWithAuthResult)="successCallback($event)"
  (signInFailure)="errorCallback($event)"
  (uiShown)="uiShownCallback()"
></firebase-login>
successCallback(signInSuccessData: FirebaseUISignInSuccessWithAuthResult) {
  // Handle successful sign-in.
}

errorCallback(errorData: FirebaseUISignInFailure) {
  // Handle sign-in failure.
}

uiShownCallback() {
  // Execute code when the UI is displayed.
}

Supporting the Project

Supporting the project details are coming soon.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contact

Kartik Watwani - kartik@workern.com

Package Sidebar

Install

npm i firebaseui-auth

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

6.16 MB

Total Files

40

Last publish

Collaborators

  • kartikwatwani