Releases: firebase/firebase-admin-go
Releases · firebase/firebase-admin-go
Firebase Admin Go SDK v2.5.0
Firebase Cloud Messaging
- A new
messaging
package for sendingmessaging
messages and managing topic subscriptions. - A new
Send()
function for sendingmessaging
messages. - A new
SubscribeToTopic()
function for subscribing a list of device registration tokens to amessaging
topic. - A new
UnubscribeFromTopic()
function for unsubscribing a list of device registration tokens from amessaging
topic.
Firebase Auth
- A new
VerifyIDTokenAndCheckRevoked()
function to check for revoked ID tokens. - A new
RevokeRefreshTokens()
function to invalidate all refresh tokens issued to a user. - A new property
TokensValidAfterMillis
has been added to theauth.UserRecord
type.
Firebase Admin Go SDK v2.4.0
Initialization
- The
firebase.NewApp()
method can now be invoked without any arguments. This will initialize an app using Google Application Default Credentials, andfirebase.Config
loaded from theFIREBASE_CONFIG
environment variable.
Authentication
- The user management operations in the
auth
package now uses theidentitytoolkit/v3
library. - The
ProviderID
field onauth.UserRecord
type is now set to the constant valuefirebase
.
Firebase Admin Go SDK v2.3.0
- A new
InstanceID
API that facilitates deleting instance IDs and associated user data from Firebase projects.
Firebase Admin Go SDK v2.2.1
- Adding the
X-Client-Version
to the headers in the API calls for tracking API usage.
Firebase Admin Go SDK v2.2.0
- A new user management API that supports querying and updating
user accounts associated with a Firebase project. This addsGetUser()
,
GetUserByEmail()
,GetUserByPhoneNumber()
,CreateUser()
,UpdateUser()
,
DeleteUser()
,Users()
andSetCustomUserClaims()
functions to the
auth.Client
API.
Firebase Admin Go SDK v2.1.0
- A new
Firestore()
API that enables access to Cloud Firestore databases.
Firebase Admin Go SDK v2.0.0
- A new Cloud Storage API that facilitates accessing Google Cloud Storage buckets using the
cloud.google.com/go/storage
package.
Authentication
Firebase Admin Go SDK v1.0.2
- When deployed in the Google App Engine environment, the SDK can now leverage the utilities provided by the App Engine SDK to sign JWT tokens. As a result, it is now possible to initialize the Admin SDK in App Engine without a service account JSON file, and still be able to call
CustomToken()
andCustomTokenWithClaims()
.
Firebase Admin Go SDK v1.0.1
- Now uses the client options provided during SDK initialization to create the
http.Client
that is used to fetch public key certificates. This enables developers to use the ID token verification feature in environments like Google App Engine by providing a platform-specifichttp.Client
usingoption.WithHTTPClient()
.
Firebase Admin Go SDK v1.0.0
- Initial release of the Admin Go SDK. See Add the Firebase Admin SDK to your Server to get started.
- You can configure the SDK to use service account credentials, user credentials (refresh tokens), or Google Cloud application default credentials to access your Firebase project.
Authentication
- The initial release includes the
CustomToken()
,CustomTokenWithClaims()
, andVerifyIDToken()
functions for minting custom authentication tokens and verifying Firebase ID tokens.