Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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. Documentations

In my email template on Firebase console, it is still showing an email link. Email Template

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.

like image 816
Damanjit Hundal Avatar asked Dec 02 '25 11:12

Damanjit Hundal


1 Answers

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).

like image 71
Renaud Tarnec Avatar answered Dec 04 '25 04:12

Renaud Tarnec



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!