Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

createUserWithEmailAndPassword creates a user with a verified email #97

Open
gintautassulskus opened this issue Apr 16, 2023 · 1 comment

Comments

@gintautassulskus
Copy link
Contributor

The createUserWithEmailAndPassword method creates a user with a verified email.

Given:

mockFirebaseAuth.createUserWithEmailAndPassword(email: "[email protected]", password: "password");

I get mockFirebaseAuth.currentUser with _isEmailVerified = true, but expect false - email verification is yet to happen.

Is such behavoir expected?

@atn832
Copy link
Owner

atn832 commented Oct 19, 2023

There's a parameter to choose whether to verify automatically or not upon calling createUserWithEmailAndPassword. By default it's set to true and you can set it to false. However I haven't implemented any way to "verify" an email after the fact. If this is something you need, perhaps you can explain your use case, or even better, suggest in PR. :)

bool verifyEmailAutomatically = true})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants