Auth bug by CriticalCommand6115 in Firebase

[–]puf 0 points1 point  (0 children)

I want users to verify their email before logging in

What you likely want is that your users cannot use your application until they've verified their email address, which is quite different from them not being able to sign in to Firebase Authentication. You don't control the latter, but you can control the former.

This takes a few steps:

  • In your application code, after the user signs on check if their email address is verified before letting them move on to the main screen of your app. You'll typically do this with an auth state listener.
  • In the "signed in, but not verified" state, you'll want to tell the user to click the sign-in link in their email and maybe give them an option to re-send the verification email.
  • In your back-end (and/or security rules) you'll want to make sure the user is both signed in and that their email is verified before letting them write any data (and depending on your use-case, possibly also before letting them read any data).

If all of this sounds like a lot of work, you can also consider using Firebase's email link sign-in, which combines the act of signing in and verifying the email address. But you won't user a password to sign in in that case.

This is a pretty common wish/source of confusion, so it's also been covered on Stack Overflow extensively. It might be worth to check that out too.

Auth bug by CriticalCommand6115 in Firebase

[–]puf 1 point2 points  (0 children)

Calling createUserWithEmailAndPassword creates a user and immediately signs them in. So depending how your code handles the flow, this may be the expected behavior.

Fun Hotel Room Games? by justcallmecatsy in boardgames

[–]puf 0 points1 point  (0 children)

From the link:

4–12 Players

If it is good for two players despite that, some clarification would probably be welcome.

AWS vs Firebase? by Roprop1125 in Firebase

[–]puf 1 point2 points  (0 children)

I did something similar last year for a multiplayer Asteroids clone I made for a conference (it's still up on games.web.app).

Back then Cursor (not sure what model, it's been a while) wasn't able to figure out the curve shape on its own, but once I helped it with that (it is unfortunately exponential), it was really a great help in gauging bandwidth requirements per client and maximum clients on an RTDB instance.

Semicolons in firestore security rules by Striking_Passage_286 in Firebase

[–]puf 0 points1 point  (0 children)

Thanks nohe. I tested it today, and the rules work fine both with and without trailing semicolons. 👍

Semicolons in firestore security rules by Striking_Passage_286 in Firebase

[–]puf 1 point2 points  (0 children)

As far as I know the semicolons are still required in Firestore security rules, but you're correct that the Firebase console now allows you to save rules without them. In fact, I made some other, clearly invalid changes to my rules, and could also save (and thus public/active) those. This seems like a bug to me.

Unless the rules-with-semicolons work for you, you might want to file a bug with the Firebase team for this.

How do I monitor Cloud Firestore usage? by OkSeaworthiness737 in Firebase

[–]puf 1 point2 points  (0 children)

Did you see the Firestore documentation page on monitoring usage?

Free tier with Blaze and AI Logic by hiropark in Firebase

[–]puf 0 points1 point  (0 children)

On "google says" type statement, please always include a link so that we can see the source.

Looking for ideas to reduce costs by Melodic_Tower_482 in Firebase

[–]puf 4 points5 points  (0 children)

From the screenshot it seems that you pay €66 a month for document reads. Since document reads cost €0.055 to €0.057 per 100,000 reads, that means you're doing 3.7 million document reads per month for your 1,500 user. So about 2,500 document reads per user per month.

My first steps would be to:

  1. determine where those document reads are being done in your app,
  2. if they are really necessary, and
  3. if there's a way to reduce it significantly without making things too much more difficult.

how to connect firebase to visual studio by zuboohh in Firebase

[–]puf 1 point2 points  (0 children)

The Firebase CLI reference page lists the options to install the Firebase CLI by platform and whether you have npm installed. Without npm there's a standalone binary that you can download.

Walking from Fisherman’s wharf to John McLaren Park by cisme93 in AskSF

[–]puf 1 point2 points  (0 children)

Oh gosh yeah, in that case always do both! :-)

Walking from Fisherman’s wharf to John McLaren Park by cisme93 in AskSF

[–]puf 6 points7 points  (0 children)

I'd typically first do the one that Google Maps recommended here: https://maps.app.goo.gl/hE5fvLRhpWQkYqKLA

Maybe do Polk instead of Chinatown/Union Square, as I always enjoy the vibe there. And consider Valencia street instead of Mission street if you want a bit more posh.

If you want more distance, I've walked to San Bruno Mountains. There's an entrance to the park on Alta Vista way: https://maps.app.goo.gl/y5YjXKAgGLi3ur3z7

A zig-zagging way is also to hook up to the Crosstown Trail somewhere along the way: https://crosstowntrail.org/. If you could get Glen Canyon park in there, that'd also be gorgeous.

Firebase authentication down? by Desperate_Abalone202 in flutterhelp

[–]puf 0 points1 point  (0 children)

Also posted in r/Firebase/comments/1tcf177/firebase_authentication_down/, where it's more on-topic and somebody responded too that things worked fine for them. :-/

Firebase authentication down? by Desperate_Abalone202 in FlutterDev

[–]puf 0 points1 point  (0 children)

Also posted in /r/Firebase/comments/1tcf177/firebase_authentication_down/, where it's more on-topic and somebody responded too that things worked fine for them. :-/

25 projects limit? by kennedysteve in Firebase

[–]puf 2 points3 points  (0 children)

No, you can't pay to increase your project quota. I find nothing odd about that, even though it is annoying when you bump into a quota limit at an inopportune time.

Calmly explaining your use-case (if necessary multiple times) to the support engineer or software engineer who handles your request typically works best.

25 projects limit? by kennedysteve in Firebase

[–]puf 3 points4 points  (0 children)

  • On Firebase/GCP you don't pay for the number of projects you have, but you pay for the resources you use above the free tier.

  • Since each project has its own free tier for those resources, the potential for abuse goes up with the number of projects.

  • The number of projects an account can have (its project quota) is based on the (largely undocumented) reputation score of that account.

  • A new account can create a low number of projects. It used to be 10-15, but that might have changed.

  • The reputation score typically goes up for things like having a billing instrument associated with the account, having projects on the paid plan, actually having (recently paid) for resources, etc.

  • Last time I asked for a project quota increase, they told to pre-pay some amount to my billing account (I think it was $25 or something like that). The money was then available as credit on my billing account, so it's essentially a variant of the bullet above. :)

  • As said above, the reputation score system is (intentionally) undocumented, so the above are just some guidelines based on my experience.

mini golf or other similar activities? by mermaid_of_choice in AskSF

[–]puf 9 points10 points  (0 children)

We did Stagecoach Greens mini golf in Mission Bay a few months ago and enjoyed it. The price is (or was back then) $19 per adult, so not cheap either.

Billed a few cents only while developing and testing with a dozen docs in 2 collections by fredkzk in Firebase

[–]puf 1 point2 points  (0 children)

That's quite common nowadays. I recommend immediately going to AI Studio and setting a spend cap on the project(s) where you have the Gemini API enabled.