I am using an firebase app that sends verification and lost password emails to users.
The users get the email form
noreply#admob-app-id-123456789.firebaseapp.com
How can I change this email address.
Note here that I am using firebase with angularfire for the web.
Thanks
You can set the email address in the Firebase Authentication console.
Specifically:
Open your project in the Firebase Console
Click Authentication in the leftnav
Click TEMPLATES in the topnav
Click the little pencil icon next to From
Related
I am currently using Firebase passwordless email verification for authentication to deep link from the email verification link to my iOS app. I would like the verification link to have the form https://example.com/onboard/<otherparams>. This would allow me to specify in the apple-app-site-association file that links that contain /onboard/* should link to my app while others should not.
Unfortunately, even when I use https://example.com/onboard in the "Action URL" field of the email template on the Firebase console, the verification link emailed to the user is in the form https://example.com/?link=https://example.com/onboard?apiKey.... I'm able to get the authentication working when I specify in the apple-app-site-association file that links that contain /* should open the app. However, this is an issue because I don't want other links to my domain (such as https://example.com/terms) to open my app.
What is causing Firebase to not create the verification link in the form https://example.com/onboard/<otherparams>?
I am currently developing an angular+ionic app. Everything is working ok but I got a question with the forgot password workflow: sendPasswordRestEmail -> user clicks link -> user fill form -> user submit form -> password and oobCode send with the firebase auth api, which I am accessing through angular fire package.
As I said everything is working as intended. The only "issue" I see is that firebase not only sends password reset email to user that created their account with an email/password but also users that are using an external provider like Google ( sign in with google). I havent test login with Facebook at this point but it is happening with google provider. I just want to make sure if this is the intended workflow or something may be wrong... a bug or something? before I post an issue on github, because even though the user can "change its password" when using an external provider, it is having no effect on their external account(gmail account) which of course should have no effect.
Sending a password reset email from Firebase allows the user to reset the password on their Firebase Authentication account. It has nothing to do with the password they may have with any social provider associated with that account.
I have ignored the email/password sign up process and the necessary email verification for a long time and only used the very basic functionality to get started and build on top of that. But now I reached the point where I cannot avoid to use a more production-grade email/password sign up process. Currently I am using these Firebase services: Authentication (email/password only), Firestore and Cloud Functions with a react-native application.
When a user signed up successfully (signed in but without an verified email!) the react native application won't offer functionality until the user has verified his/her email. Right after the sign up the client will send an email with an verification link (through the default firebase server), the user can verify his/her email by clicking the link.
The issue: How to react suitable to a change of emailVerified or any other event which fires if the email got verified?
I have now searched the whole day for a working solution. These are my approaches:
Use your own website to which all verification links are linked (tried this but did not work at my first attempt)
use actionCodeSettings in the email verification link to redirect the user and let the client reload its components
Use Cloud Messaging and inform the client about changes to the email verification status
call a Cloud Function (from an external server) which updates a tmp document in Firestore to which the client subscribed
reload()/loop
I am thankful for all comments, helpful links etc.!
There is a method in the Firebase SDK: isEmailVerified() which tells if the user has verified the email or not.
For react native, I found straightforward documentation: Email Verified. On the launch of the app, you can check if the user has verified the email or not and then make changes accordingly!
Happy Coding!
Firebase Auth has a method to send a verification email so the user can reset his/her password. This link redirects the user to a website where the new password will be written and saved.
Is there a way to reset a user's password using flutter and firebase inapp? I mean, could I send a verification code through SMS or email that would be then typed into the app and the user would choose a new password all inside the app?
Thank you!
To be able to change a user's password directly through the API, the user will have to enter their current password in order to be able to update it.
If you use the Admin SDK however you can implement whatever flow you want, and update the password at the end of the flow. But of course in that case it is up to you to ensure you do it securely.
You can do so by using custom email handlers along with dynamic links to open them in your app. This might require a custom domain to do so. Once the user visits your application on the custom route/page, you can then use applyActionCode method to process the email action. Checkout my answer here for a detailed explanation on processing the email actions:
How to build a custom Email action handler in Flutter for Firebase Authentication
I am trying to customize the email verification template of firebase in such a way that when the user subscribe, the email verificaton is sent to him and when he click on the verification link,the app is opened and it handle the end of the verification process. I am using firebase for my backend. So when i change the default verification URL by this :
myappname://PageName?mode=<action>&oobCode=<code>,
firebase generate an error and the modifications are not saved.
Custom schemes are not supported for email verification. Firebase Auth uses FDL (Firebase Dynamic Links) to send verification links directly to a mobile application. These use more secure mechanisms for app redirects including universal links in iOS, Android verified links and Google play verified links, etc. Please use these as they are more secure than custom schemes which anyone can claim and are particularly vulnerable in Android which is not as regulated as Apple via the app store review process.