Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
1 vote
1 answer
141 views

How to GetDownloadURL with Go Firebase Admin SDK

I have a web server and need to allow admins to upload images and users to view images. I am able to upload the file just fine with this: bucket, err := client.DefaultBucket() if err != nil { ...
Rafael Zasas's user avatar
1 vote
1 answer
270 views

Authenticate user using Go and Firebase Admin SDK

Is there a way to authenticate the user using its email address and password? In the Firebase Admin SDK package, Go language, I found no "Sign in" function. To create a CustomToken you don't ...
GSeriousB's user avatar
  • 251
1 vote
0 answers
135 views

Firebase Appcheck Golang Admin SDK requires use of internal package externally in its API

Current issue on their Github. First, I believe the Firebase documentation for how to use AppCheck with the Golang Admin SDK is wrong here. It says you need to create a new appcheck.Client directly ...
Matthew Trent's user avatar
2 votes
2 answers
4k views

Firebase Cloud Functions in Golang

Is it possible to write Firebase Cloud Functions in Golang such that they can access Firebase services such as Firestore and Storage, in both production and emulators? Ideally I would like to have a ...
Rafael Zasas's user avatar
1 vote
0 answers
632 views

Firebase Auth Emulator - Golang: Project not found

Recently I started testing my go server, which uses firebase admin sdk, with firebase local emulator suite. It works perfectly with firestore, but with the authentication not so much. I tried many ...
Shalom Prinz's user avatar
1 vote
0 answers
72 views

use subset of firebase admin features

is it possible to use only subset of firebase-admin-go on the backend? it ships with a ton of features but all i need are: ID Token Verification Firebase Cloud Messaging so i was hoping i could do ...
M-Raw's user avatar
  • 829
5 votes
2 answers
833 views

Firebase storage emulator ignored by go admin sdk

I'm trying to setup the storage emulator for my firebase project. I am using the Go admin sdk. However it seems to be ignored despite following the documented process. App initialization: func App(ctx ...
Hunter Heston's user avatar
1 vote
1 answer
155 views

Import external user to firebase

I want to import users from an external database to firebase. The password were hashed with a sha256 function with the password prepended by a salt (which is a UUID). For example: password = "...
bebenzer's user avatar
0 votes
1 answer
245 views

Authenticate on Realtime Database using an IdToken using the Go Admin SDK

When using the Firebase Admin SDK in Go, I'm facing an issue where I can't authenticate on the Realtime Database. Here's how I start the database connection: option := option.WithTokenSource(...
Martichou's user avatar
  • 133
2 votes
1 answer
3k views

Project ID Required to Access Firestore Error

I wish to use the firebase admin-sdk but for some reason, I am getting a "project id is required to access Firestore error". I have downloaded an admin-sdk json file from the firebase ...
Sree Grandhe's user avatar
1 vote
1 answer
172 views

Is there a lighter version of the firebase admin SDK that only includes the auth package for Go?

I have the whole firebase.google.com/go/v4 library as a dependency just to be able to do the following: client *auth.Client client.VerifyIDToken(ctx, bearerToken) Is there a lighter version of the ...
user3217163's user avatar
0 votes
1 answer
471 views

When I try to get the user data with Go and firebase adminSDK, I can only get the memory address

I'm currently using the Firebase adminSDK to get the user data from the firebase authentication. The following code seems it can access firebase, but the data to be retrieved is a memory address. I ...
X-MUK-625's user avatar
0 votes
1 answer
594 views

Firebase Admin SDK Upload File to Google Cloud Storage

This has been a source of frustration for the past couple of days because the documentation makes it sound like it should be straightforward. I have a simple HTTP server running locally (Heroku ...
Kal's user avatar
  • 24.9k
1 vote
1 answer
843 views

What is the idomatic way to get a single document from Firestore using Go?

I'm writing a Go service that retrieves a single Firestore Document with a given id. Draft implementation below. The code appears to work. GetAccount returns a map[string]interface{} which is either ...
Andy Fusniak's user avatar
  • 1,608
0 votes
1 answer
498 views

firebase-admin-sdk-go FCM messaging thread safety

I've been trying to determine if the FCM messaging portion of the firebase-admin-sdk for Go is thread safe. I'm using v4 of the sdk. firebase "firebase.google.com/go/v4" "...
Stavros_S's user avatar
  • 2,195

15 30 50 per page