What counts as verification in Firebase Phone Auth? - firebase

Firebase charges about $0.06 per verification. Does that mean they only charge AFTER the user successfully verifies his phone? Or do they charge everytime a user requests a code?

If you hover over the question mark, "?", in the pricing page it says
Prices are per successful verification.
On the Blaze plan, Phone Authentication provides a perpetual free
tier. The first 10K verifications are provided for free each month.
You are only charged on usage past this free allotment.
All other Firebase Auth features are free to use on all plans.

Related

How does new Firebase Authentication billing work?

My app supports only login via Email/Password, Google, and Facebook using Firebase Authentication.
Inside the Authentication -> Settings tab, Firebase said to me "Upgrade to Firebase Auth with Identity platform to access this feature."
I upgraded successfully because I want to disable create a new account on the client side and disable delete account. These features are only what I want.
If you interested to know why I want to disable creating a new account on the client side? Please check my question here to know why.
Today I opened Firebase Pricing and I found there are changes in Firebase Authentication, Firebase added 2 new rows in the last as you can see.
I was not charged in Phone verifications because I don't use this provider. I only charged for Firebase Realtime Database and Firebase Storage.
Here are my questions:
Identity Platform Pricing Monthly active users (excluding SAML/OIDC) => If there were 83,000 daily active users (83,000 * 30 = 2,490,000), At the end of the month how much I'll be charged approximately?
Monthly active users - SAML/OIDC => As I said above my app supports only login via Email/Password, Google, and Facebook, Does that mean I'll not be charged about SAML and OIDC?
I hope everything is clear. Thank you.
If you have 83K monthly active users then you won't be charged for 50K users as it falls in the free tier. But you'll be charged for the next 33K users as per the pricing mentioned in Google Cloud Documentation:
From the documentation,
Any account that has signed in within a given month is considered an active user. Inactive users are stored at no cost.
For the given example, you bill would be:
0.0055*33000 = $181.5 / month
my app supports only login via Email/Password, Google, and Facebook, Does that mean I'll not be charged about SAML and OIDC?
Yes, if you are not using SAML/OIDC (Tier 2 providers) then you'll be charged based on Tier 1 pricing mentioned above only.
If you use any Tier 2 provider then you only have up to 50 free MAU and $0.015 / MAU / month thereafter.

Firebase Authentication Costing?

Does updating user details such as name, password or adding/deleting Custom Claims in firebase authentication also cost charge ?
Suppose if I have 1 million users in my app with using firebase authentication and if I update password of all the users or add custom claims to all the user using firebase Admin SDK. Does this process cost any charge ?
Does updating user details such as name, password or adding/deleting Custom Claims in firebase authentication also cost charge ?
No.
Suppose if I have 1 million users in my app with using firebase authentication and if I update password of all the users or add custom claims to all the user using firebase Admin SDK. Does this process cost any charge ?
No.
I suggest reviewing the pricing information in the documentation. Firebase Auth has no charges except for phone auth. What you are describing is covered by "Other Authentication services" which are not billed.
There are limits to the rate at which you may make API calls, which you should also review.
If you have further questions about billing that are not covered in the documentation, you should send those directly to Firebase support.

Firebase Phone Auth price

Firebase allow free 10k authentications/month + 0.06 per each extra authentication. I am reading a documentation however it is still not clear to me what authentication/validation definition is.
Does that mean I can receive 10k free sms messsages per month and I will pay nothing extra when user already logged in and uses APIs to call firebase services OR it means I will need to pay extra even after user successfully logged in but in case of firebase internally wants to validate authentication status as kind of a background task is considered authentication too?
In other words: let's say each month I have 10k new logins (sms received) should I expect to be charged anything extra?
Firebase Auth only charges on successful verification.
So if a user tries to sign in with a phone number and an SMS code is sent but not used or received by the user, this attempt will not be counted. Only when user enters the code and successfully verifies it (successfully signing in), will that attempt count. The first 10k successful verifications are free. Any successful verification afterwards will be $0.01/verification for US/Canada/India and $0.06/verification for other countries.

What happens when exceeding Firebase Auth API quota

I know about the Auth API quotas from Firebase Docs.
And I want to know what happens when these quotas are exceeded?
Do I get charged more money?
Or does the Auth functionality stop until the limit is over?
In Firebase, if you use the "Free" or "Spark" plan, if you exceed any quota (Not only Auth), the functionality will not work until the limit is over. But if you use the "Pay As You Go" plan, you will get charged more money.

fcm Quotas and Limits per device and message

I searched and read google documentation about this subject,
but I don't see good text about FCM. This link have pricing about all module exception cloud messaging,
My question :
How many device can register to fire base in free plan?
How many can send message per day in free plan?
There are no documented limits on the number of devices nor on the number of messages that can be registered in Firebase Cloud Messaging. This no-limits applies equally to both projects on paid and on free plans.

Resources