I'm writing the flutter app (ios/android) using firebase auth.
My app users are just signed up with their phone number at first.
I want my users' accounts link with their email.
Is there any way to send email which contains just code (not auth link) with firebase auth?
or is there any way to link users' accounts(phoneNumber auth) with their email?
Thanks!
Related
I have project which has both an Android app and a Python Desktop-app (using pyrebase).
I'm using firebase for Authentication. For the Android, I've enabled both Google Authentication and Email Authentication.
For the Python, just email authentication (there doesn't seem to be a nice way to do Google Auth from python).
I have "Link accounts that use the same email" checked in Firebase Authentication Settings. Now suppose I:
Create user account with Email in desktop, and log in to it.
Sign in with Google Auth using the same email in android.
Try to log in again in desktop with same user-name and password.
Guess what happens? Log in does not work - the Google auth has "taken over" that account and is now the only way to authenticate (which means the account cannot be used from the desktop-app anymore)
Question: Is there any way to allow users to log into the SAME user account through EITHER google-auth OR email?
I am having a challenge with flutter firebase I want to make login signup using phone number and password. I will take phone number and password at the time of signing up and same for login the otp will after successfully matched password but I am struggling to create it. I have done simple login signup using phone number but with password its not happening any lead on how I can do it in flutter
You can allow your users to sign into your application using multiple providers by linking authentication credentials to existing user accounts. Users can then be identified using their Firebase UID, regardless of the provider they used to sign in
i have Google sign-in in the Logins screen, and i have another page to verify the user phone number.
I have use firebase Phone auth to verify phone number but it change the FirebaseAuth.currentUser from google uid to phone authentication uid, which is not what i want.
so i found a package flutter_otp but this plugin is not working fine.
so i want to send SMS otp and verify it without firebase.
Thanks
I am creating an app where the user has to signup with an Email and Password. I want firebase to first verify the email if it does exist and it is an email and sends a link to the user to verify the email after this creates the account in firebase. So how can I do it can anyone tell me?
This has been covered quite a few times before, so I'll provide some links below. The bottom line is that the Firebase email+password provider provides no way to require email verification before account creation. The closest it has to that is the email link provider, which sends an email that signs the user into an account (without entering a password).
Some previous questions on the topic:
Verify a user's email address before confirming registration, with Flutter and Firebase
Firebase email verification at SignUp
How to prevent user authentication in Firebase/Vue.js BEFORE email is verified
more...
I'm creating a flutter app with firebase.
I've added as one of my auth method, google sign in.
But if I register with the same email with an email and password,
and then sign in via google with the same email, firebase will change the provider of the user from email and password to google and when you'll try to login with email and password, the older password will not be vaild any more and you'll have to go through a password reset process.
How can I prevent firebase from changing the user provider?? Or how can check if this email is already registed in my firebase project (with the same email of course)???
Under authentication -> sign in methods
Activate: One account per email address.