Firebase Flutter, tap on email verification link but it does not change `isEmailVerified` to `true`
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
You need to call the reload method for this to take effect, it won't automatically change.
Ah, i mean even i close the app, login again. it still issue like still return me false value
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
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!
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.