alternative to sending email using gmail with firebase function - firebase

I recently got that email from Google which says that as the beginning of 30.05.2022, we will not be able to use "less secure apps" options anymore.
I'm using this option to sending emails with firebase function combined with nodemailer, as probably a lot of other users do.
So the question that I have is how can we use it after the above date?
If you need an example of how I am using it please let me know in the comment.

You may use the Google App Password to replace your current password set inside your nodemailer function
Google App Password will generate 16-digit passcode for your third party app
https://support.google.com/mail/answer/185833?hl=en-GB

Related

Flutter: Sending Email Verification code through FlutterFire?

In the FlutteFire documentation, it says that "Firebase will send an automated email to the user with a unique code. This code can then be entered via the applyActionCode() method. You can first check whether the code is valid by using the checkActionCode() method" Yet when I send an email verification, it shows a link.
In my email template on Firebase console, it is still showing an email link.
I want to be able to send a code instead, just because it allows for a better user experience in my opinion. What do I do in order to get the email verification to send a code instead? I've looked everywhere and can't find anything helpful.
At the time of writing, you cannot extract the oobCode value that is generated by Firebase Auth.
If you want to use this code, you need to extract it from the Query String in the web page that corresponds to this URL (note that you can adapt the URL in the template in order it points to another URL that you control, e.g. that is exposed by your app).

Problem with Google Calendar Api error This app isn't verified

I am creating a project to be able to share a Calendar among some users.
The strange thing is that when one of the users wants to connect, the following error appears telling him "This app isn't verified"
https://prnt.sc/p87wvm
I am not a programmer so it is difficult for me but I think I am doing everything right.
The only api that I am using is that of Google Calendar.
The email with which I am creating the Api is a #gmail.com
https://prnt.sc/p88o0g
I am not using any special scope that requires some type of verification.
I did not exceed any quota limit or anything like that.
And the send to verification button is disabled and tells me that my changes do not require verification
I want any user with a Gmail email to connect to the calendar
What i need to do??
For the doubts I have verified the domain thinking that it was that but it did not solve the problem either

Firebase Email verification not working

I am looking for help to the same question as in
Firebase Email verification not working with ActionCodeSetting
The answer is unfortunately incomplete (to me), and I cannot comment on the original answer as I'm new to SO.
What I'd like to know is whether or not it is required to implement the custom email handler (as per https://firebase.google.com/docs/auth/custom-email-handler) on an external host (as in the guide), or if this can be done on iOS client itself?
Thank you
You can do that client side (on the iOS device) by passing state in the email action.

Log in restriction using firebase auth

I've created a website using firebase authentication system. The website is intended for a specifik group of people which means i want to restrict sign up/log in for this group.
I've been looking around for a solution but haven't been able to find a good one. I got a tip about creating a "whitelist" for the allowed users and changing the security rules so that .read is true for these people. But would this restrict login?
So basically I'm wondering if anyone else has bumped into this problem? Or if anyone has a good solution?
What you can do is to set up FireBase Auth using the Email/Password signin provider.
Then, create a backend page/tool to pre-register the users and send them a verification email.
Details found in FireBase doc: https://firebase.google.com/docs/auth/users

Firebase Cloud Functions: Send Email via Authentication System

Firebase Authentication has a built in email service. Is it possible to fire an auth based email via Cloud Functions (admin js sdk)?
Seems like I should be able to trigger an email from noreply#my-domain.com with a custom oob code which I could then use to drive my (client-side) application.
My use case would be, when a new order .collection("orders").doc(uid) has its stage field updated/changed to 'submitted' I would like to notify a user via email that a new order is submitted. Maybe even use the oob code to mark as 'processed'?
...just trying to avoid using a 3rd party email service altogether.
you can use MailChimp to do what you are asking, since like Miles says, you will need to do a workaround in order to fix this.
I have been using MailChimp my self to send emails to each user registered in my app , i have setup a couple of emails in mailchimp and i just add to the list all the users that register to my app, so the first message will be the welcome message, then after 2 days another email and so on, you can trigger an email whenever you want, since the doc is not that clear i have made a tutorial on how to integrate it with Android.
you can find that tutorial HERE , the only thing is that is in spanish, sorry.
The idea is simple, just get your users email throught FirebaseAuth , pass that email to the mailchimp query , and then setup an email from the mailchimp website
Unfortunately, their API does not appear to support emailing users in your project. However, they have sample code for cloudfunctions to email users you can easily tweak for your needs: https://github.com/firebase/functions-samples/tree/master/quickstarts/email-users

Resources