Email verification in Firebase Console - firebase-authentication

Is there a way for administrators to see and change the status of email verification from inside the Console? Everything I’ve found so far is based only on the client pushing a verification email from the backend and checking its status. It would be useful for the admin to get an overview of this too.

The email verification status is not shown in the Firebase console. It's not a bad idea, so I'd definitely file a feature request.
For individual users you can use the Firebase Admin SDK to read or change the emailVerified property.
To get the status of all users, you can use the auth:export command of the Firebase CLI.

Related

native login with google login in a Website

I'm working on a MERN stack web app.
i have used firebase for backend for sign up,
now i want to have native login functionality as well as log in with google,
i already have imported log in functionality for both , and they are working like hot knife on butter.
but i failed to create proper logic,
in my schema password is required.
and when user log's in with google, i will not get password,
so what should I do?
should i remove required from password? and when user triggers password event, should i just check if he/she is google id logger with help of googleID provided by google,
or encode some another thing to compensate for password, which will of course be a BAD IDEA!
tell me logical flow thay you all are working with , Please!!
Thanks
right now I'm just encoding GoogleID provided by google , encoding it for password => for temporary purpose.

I already verified an email which created on firebase, is there any way to change to unverified

I want to un-verify the test email account for checking the email verification feature, Any option in firebase to change email verification to false in console ?
There is no option to change user profile data in the Firebase console.
The simplest way to change this is using the Admin SDK to update the profile.

How to print email verification URL from Firebase Auth in Emulator?

I am using the Firebase Emulator for local testing. I have a signupUser Firebase Function that uses Firebase Auth to sign up users (and does some extra work). Both of them use the Emulator, and the issue is, this way the email verification URL does not get printed neither to the console (in which I run the Emulator) nor to the Functions Log. As a result, I cannot verify my new test users and cannot log in. Is there any other way to verify these test users' email addresses or to manually print the verification URL?
Ok, I've found it. Using the Admin SDK we can generate a verification link, that we can then console log.
import * as admin from 'firebase-admin';
admin.auth().generateEmailVerificationLink(useremail, actionCodeSettings)
Docs: https://firebase.google.com/docs/auth/admin/email-action-links#generate_email_verification_link
There is another way, more automated, so you don't need to add the admin sdk:
Here is the auth log output for a new user within the Emulator:
Then base on this documentation you can fetch the oobCodes (out of band
codes) with restAPI:
Also documentation described here

Auto Read OTP in flutter using firebase is possible?

I have same problem and search a lot . But can't find exact Solution.
But I solve this problem by enabling 'Android Device Verification' API
Steps:
1:Go to the Library page in the Google APIs Console.
2:Search for, and select, the Android Device Verification API. The Android Device Verification API dashboard screen appears.
3:If the API isn't already enabled, click Enable.
4:If the Create credentials button appears, click on it to generate an API key. Otherwise, click the All API credentials drop-down list, then select the API key that's associated with your project that has enabled the Android Device Verification API.
Check this link for more information
https://developer.android.com/training/safetynet/attestation?authuser=0
The following package helps for auto reading of OTP
sms_autofill
https://pub.dev/packages/sms_autofill
This is a Similar issue for android mentioned, and Below are few work around:
You need to make sure the message you receive contains the hash of your app. Below is the right format :
123456 is your verification code for %APP_NAME%.
abc_hascode_xyz
If your SMS does not contain the hashCode at the end, you might have to shorten your app name to not more than 15 characters.
If your app is already published on Google Play, the name in the SMS will be the same as the one in the Google play store.
If you changed the name to 15 characters and the error still persists, you might have to wait for at least 24hours for the change to reflect on firebase.
if after all above it's still not resolved, please check if your receiver is well configured in the code.
check out the new GooglePlay policy on app name : Examples of common app names violations
Firebase auth with the phone automatically detects OTP in the phone itself.
But in few cases, OTP is not fetched by itself so I would like to suggest you please make a template such that OTP automatically gets detected.

Custom Notification from Auth0 to iOS

I have an iOS 7 iPad app that uses Auth0 to authenticate users. Auth0 sends a verification message to each new user's email address to verify the email address. I would like my app to be informed when the email address has been verified. I have not found a way to do this without repeatedly querying Auth0 for the user's profile until the profile indicates the email address is verified.
Has anyone found a more efficient way to do this? I am very new to process communication over the internet, but I see that I may be able to use an Auth0 Rule to send a URL get request. I also see that I have added URL schemes to my app to enable it to respond to URLs. But I don't know if these two features can be used to provide a notification from Auth0 to a device that the event I want has occurred.
Has anyone a solution to this?