1.2.6 • Published 5 years ago

tk-login-dev v1.2.6

Weekly downloads
4
License
ISC
Repository
github
Last release
5 years ago

Package for logging in TechKids Edu system

Usage

<Login
  firebaseConfig={{
    apiKey: <<API Key>>,
    authDomain: <<Auth Domain>>,
    databaseURL: <<Database URL>>,
    projectId: <<Project Id>>,
    storageBucket: <<Storage bucket>>,
    messagingSenderId: <<Messaging Sender Id>>,
  }}
  authUrl={<<Authentication Url>>}
  idUrl={<<ID Url>>}
>
  <MainComponent />
</Login>

const MainComponent = (props) => {
  const { getToken } = props; // Function will return promise with token
  ....
}