Home > Back-end >  Is there a way to get a Google OAuth2 token with email and password using Go?
Is there a way to get a Google OAuth2 token with email and password using Go?

Time:10-27

I am trying to avoid using a service account for my Go application and I need a way to authenticate with my database. I found a way to authenticate with a service account json but I am hoping to find a way with just an email and password for an existing Firebase user. How would I do this in Go?

CodePudding user response:

The is no way to sign in to Firebase Authentication with the provided Go Admin SDK. What you can* do is the call the REST API for Firebase Authentication to sign in, and then use that to authenticate with the REST API for the Realtime Database.

  • Related