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
CodePudding user response:
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.