tk-login-dev
v1.2.6
Published
``` <Login firebaseConfig={{ apiKey: <<API Key>>, authDomain: <<Auth Domain>>, databaseURL: <<Database URL>>, projectId: <<Project Id>>, storageBucket: <<Storage bucket>>, messagingSenderId: <<Messaging Sender Id>>, }} authUr
Downloads
4
Readme
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
....
}