Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

[firebase_auth] adding return to verifyPhoneNumber #903

Merged
merged 1 commit into from
Nov 16, 2018

Conversation

ffeu
Copy link
Contributor

@ffeu ffeu commented Nov 16, 2018

fixes flutter/flutter#23332

verifyPhoneNumber() is supposed to be used with the callbacks passed in its arguments.

However, this method returns Future<void>, and using await verifyPhoneNumber(...) hangs as neither Android or iOS implementations ever return anything for this method call.

Adding a null return so that the method returns after the callbacks are registered.

@ffeu
Copy link
Contributor Author

ffeu commented Nov 16, 2018

Hey @kroikie , I guess this is a quick one.

I didn't improve the tests because the current plugin mockup simulates exactly what the real plugin didn't do until this PR, which is returning null.

So regarding this aspect the test is now compatible with the implementation.

@kroikie
Copy link
Contributor

kroikie commented Nov 16, 2018

Looks good, thank you!

@kroikie kroikie merged commit 535124f into flutter:master Nov 16, 2018
@ffeu ffeu deleted the verifyphonereturn branch November 21, 2018 17:16
andreidiaconu pushed a commit to andreidiaconu/plugins that referenced this pull request Feb 17, 2019
andreidiaconu added a commit to andreidiaconu/plugins that referenced this pull request Feb 17, 2019
julianscheel pushed a commit to jusst-engineering/plugins that referenced this pull request Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

firebase_auth verifyPhoneNumber never completes
3 participants