Added security to Firebase in application.
This commit is contained in:
parent
80a73145f7
commit
b0b449abb3
|
@ -1,6 +1,7 @@
|
|||
import firebase from 'firebase/app';
|
||||
import 'firebase/database';
|
||||
import 'firebase/storage';
|
||||
import 'firebase/auth';
|
||||
|
||||
const config = {
|
||||
apiKey: "AIzaSyAYf9AbeYwLY892NRiQfn0AMtG9xIFAJbo",
|
||||
|
@ -13,4 +14,11 @@ const config = {
|
|||
|
||||
firebase.initializeApp(config);
|
||||
|
||||
firebase.auth().signInAnonymously().catch(error => {
|
||||
var errorCode = error.code;
|
||||
var errorMessage = error.message;
|
||||
|
||||
console.log(errorCode + " - " + errorMessage);
|
||||
});
|
||||
|
||||
export default firebase;
|
Loading…
Reference in New Issue