There is a problem in starting..
I initialized my firebase app. But auth() is not working
var auth = firebase.auth();
console.log(auth.createUserWithEmailAndPassword)
createUserWithEmailAndPassword
returns undefined.
It also gives function error
var email = "mail@mail.com"
var password = 123
var auth = firebase.auth();
auth.createUserWithEmailAndPassword(email, password).then(function(result) {
console.log(result)
}).catch(function(error) {
console.log(error)
});
The error:
TypeError: auth.createUserWithEmailAndPassword is not a function
What is the problem?