flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

Firebase Flutter, tap on email verification link but it does not change `isEmailVerified` to `true`

Open diegothucao opened this issue 6 years ago • 5 comments

Hi mate, i am facing with an issue Flutter firebase authentication. I have an app, when i sign up, i configure in firebase console and get an verification email that is sent to my email like this http://link.xxxx.ch/app?mode=verifyEmail&oobCode=iGRLblNUDXNN_dEhu-amY-uuvZ-54uLPAOts4vlpU1EAAAFymjc8EQ&apiKey=AIzaSyAuDqXq1h7ZyJngMmhvCuo8Xi8NJLGWk4Y&lang=en

However after i tap on email verification link, the app is wake up from dynamic link and i can get the oobCode and mode in Flutter app. But i check user info, it still show me isEmailVerified: false even i stop app, login again... still see isEmailVerified: false. Do i need any special code when tap on the link like need to do something with oobCode ?

Thanks

diegothucao avatar Jun 09 '20 17:06 diegothucao

You need to call the reload method for this to take effect, it won't automatically change.

Ehesp avatar Jun 10 '20 07:06 Ehesp

Ah, i mean even i close the app, login again. it still issue like still return me false value

diegothucao avatar Jun 10 '20 13:06 diegothucao

firebase_auth library is missing the api applyActionCode(actionCode) which as I understand would verify the user using the oobCode.

Regarding your issue, it seems you are clicking on the link and using deep linking to open the app and hence the link is not actually doing anything.

To test you could disable deep linking and let the link open the browser which will tell you the user is verified. Then try and login to confirm.

Ideally, the Firebase team could add the missing api to the firebase_auth library to be able to use the applyActionCode(actionCode) functionality

MarcRubio avatar Jul 27 '20 21:07 MarcRubio

Hey @diegothucao. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot avatar Aug 05 '20 01:08 google-oss-bot

Since there haven't been any recent updates here, I am going to close this issue.

@diegothucao if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

google-oss-bot avatar Aug 14 '20 01:08 google-oss-bot