Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the email template when using Firebase email link authentication [duplicate]

Firebase supports password-less email logins. A user provides their email, and then Firebase emails them a login link.

https://firebase.google.com/docs/auth/web/email-link-auth

However, I don't see any way to change the email text. This is the default:

Sign in to project-XXXX  Hello,  We received a request to sign in to project-XXXX using this email address. If you want to sign in with your [email protected] account, click this link:  Sign in to project-XXXX  If you did not request this link, you can safely ignore this email.  Thanks,  Your project-XXXX team 

The Authentication > Templates section of Firebase Console only shows the following options. None of them match the text above:

templates

like image 968
Kayce Basques Avatar asked Jul 14 '18 02:07

Kayce Basques


People also ask

How do I change my Firebase email template?

Open your project in the Firebase console. Go to the Email Templates page in the Auth section. In any of the Email Types entries, click the pencil icon to edit the email template.

Can you change email in Firebase Auth?

FOR FIREBASE V9 (modular) USERS: if any others trying this code please don't forget to re-login (firebase needs recent login token) firebase user. then only firebase will allow to change email address.

How does Firebase email verification work?

You can use Firebase Authentication to sign in a user by sending them an email containing a link, which they can click to sign in. In the process, the user's email address is also verified. There are numerous benefits to signing in by email: Low friction sign-up and sign-in.


1 Answers

You cannot, Firebase prevent this in order to avoid being used for spam. If you want to change the email, you need to handle the flow by yourself.

More info/references:

  • https://stackoverflow.com/a/50077575/5869296
like image 144
michelepatrassi Avatar answered Oct 04 '22 12:10

michelepatrassi