Skip to content

Phone-Auth & android auto verify #6087

Answered by mikehardy
colinm asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there!

I think the actual flow from firebase's perspective is:

user enters phone
app creates account with unverified phone number on backend server
user receives sms

  • user confirms sms and backend server marks phone number as verified, or...
  • sms is auto-confirmed and onUserChanged or onAuthChanged listener is called
    app redirects user to main screen

Anyway - I think the main thing is, have you played around with the listeners, there is a snippet here https://rnfirebase.io/reference/auth/phoneauthsnapshot - you should be able to tell via state_changed what is going on with the listener

This is kind of a mess but is actually in use in one of my projects and works last I checked

    fire…

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@colinm
Comment options

@mikehardy
Comment options

@colinm
Comment options

Answer selected by colinm
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants