Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Email verification for iOS app using Firebase

I was thinking of making an iOS app using Firebase, and i wanted to know how to verify users email id who sign up for my iOS app? So that only those users who emails are verified can be users of my iOS application.

like image 371
atir Avatar asked Mar 13 '23 02:03

atir


1 Answers

You can use the sendEmailVerificationWithCompletion: method to send the verification email and when a user is logged in you can use the emailVerified property to check the verification stat, as it is defined here...

https://firebase.google.com/docs/reference/ios/firebaseauth/interface_f_i_r_user#instance-method-summary

So you can decide what actions can an unverified user do like request the verification again...

like image 156
Ymmanuel Avatar answered Mar 20 '23 12:03

Ymmanuel