Reputation: 7552
what is a likely cause of auth/operation-not-allowed
when I enabled account creation and have correct api creds, using
import {
getAuth,
createUserWithEmailAndPassword,
updateEmail,
User,
signInWithEmailAndPassword,
} from "firebase/auth";
.
.
const user = await createUserWithEmailAndPassword(auth, email, password);
I've enabled the operation on the auth methods in the firebase console too
Upvotes: 0
Views: 2355
Reputation: 83068
As indicated in the documentation, the auth/operation-not-allowed
error code indicates that "the provided sign-in provider is disabled for your Firebase project".
You should double-check that you have correctly activated the email/password sign-in provider.
Upvotes: 4