firebase-admin-go | Firebase Admin Go SDK | Authentication library
kandi X-RAY | firebase-admin-go Summary
kandi X-RAY | firebase-admin-go Summary
Firebase provides the tools and infrastructure you need to develop apps, grow your user base, and earn money. The Firebase Admin Go SDK enables access to Firebase services from privileged environments (such as servers or cloud) in Go. Currently this SDK provides Firebase custom authentication support. For more information, visit the Firebase Admin SDK setup guide.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of firebase-admin-go
firebase-admin-go Key Features
firebase-admin-go Examples and Code Snippets
Community Discussions
Trending Discussions on firebase-admin-go
QUESTION
I'm using Firebase Functions for a Golang project, and in one of the functions, I need to use the credentials to initialize another GCP product. There's supposed to be a pre-populated environment variable called FIREBASE_CONFIG
that holds the credentials that I need, but when a try to access it, nothing turns up.
ANSWER
Answered 2020-Jul-20 at 16:00FIREBASE_CONFIG is only provided for functions deployed with the Firebase CLI. The Firebase CLI only supports functions targeting a nodejs runtime. It doesn't support golang.
If you're deploying a function written in go, you're not actually using the Firebase tools at all - you're using the Google Cloud tools (gcloud). The Firebase specific documentation isn't going to be accurate for your case. So, you'll have to find another way to provide yourself with the information you need at runtime. You can set your own environment variables if you want, or just deploy a file to read.
QUESTION
I'm using https://github.com/firebase/firebase-admin-go in my Go server application.
After looking at the documentation, I'm creating the auth.Client every time I'm checking the ID token. E. g.:
...ANSWER
Answered 2018-Nov-03 at 16:31Yes, it is goroutine safe.
auth.Client
is intended to be shared among goroutines and reused. Specifically, the VerifyIDToken()
function will cache the public keys between invocations. You should reuse the client instance to benefit from this. auth.Client
performs its own locking/synchronization internally, when required (e.g.).
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install firebase-admin-go
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page