0

I am able to code/set up to get registration email from firebase from reactjs application. I would like to override this email and add button like registration link in the email body. I've attached sample email body(received from this website for registration :)). There is a suggestion to use the below function(?!). I am not familiar with this. Can you please help to implement this?. kindly let me know if you need more details about my requirement. Thanks.

exports.sendWelcomeEmail = functions.auth.user().onCreate((user) => { // ... }); 

Sample email:

Sample email

8
  • What are you referring to by "registration email from Firebase"? Can you share more details on what have you tried so far? Commented Feb 12, 2022 at 6:16
  • currently, i am receiving verification email like below. But, i would like make the link similar to a button(sample attached in my initial post). when user click the button(kind), user may be able to verify their email id. "Hello, Follow this link to verify your email address. <Link here > If you didn’t ask to verify this address, you can ignore this email. Thanks, Your project-357608512510 team" Commented Feb 12, 2022 at 9:03
  • 1
    Authentication using Email Link may fulfill your requirements. Commented Feb 12, 2022 at 10:27
  • Thanks. I will try to follow the guidance. Not sure if i need to try that in back end or front end. @RenaudTarnec Commented Feb 14, 2022 at 6:10
  • Hi there, in my front end(react js), 1. i have defined actionCodeSettings 2. then, called createUserWithEmailAndPassword to create user using firebase 3. then, i called getAuth().generateEmailVerificationLink(userCredential.user.email, actionCodeSettings) when i input email and password from my UI, user is getting created in firebase. But, i am getting below error. Can you please assist?. i am just learning firebase admin functionalities. error: "typeError: Object(...)(...).generateEmailVerificationLink is not a function" Commented Feb 19, 2022 at 6:52

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.