firebase-auth-panel

1.0.5 • Public • Published

firebase-auth-panel

An HTML custom element implementing the <firebase-auth-panel> element.

fun-input in action

Setup

Installation

npm i firebase-auth-panel

<script src="node_modules/firebase-auth-panel/firebase-auth-panel.bundle.js"></script>

or if you're bundling

import "firebase-auth-panel";
// or
require("firebase-auth-panel");

Usage

<firebase-auth-panel
        logo="logo.jpg" //optional
        google      //optional
        facebook    //optional
        twitter     //optional
        github      //optional
    ></firebase-auth-panel>

<script>
    const panel = document.querySelector('firebase-auth-panel');
    const config = {
        apiKey: '[your api key here...]',
        authDomain: '[your auth domain here...]',
    };

    firebase.initializeApp(config);

    panel.setFirebase(firebase);

</script>

Dependents (1)

Package Sidebar

Install

npm i firebase-auth-panel

Weekly Downloads

6

Version

1.0.5

License

MIT

Last publish

Collaborators

  • kiricon