Releases: firebase/firebase-admin-go
Releases · firebase/firebase-admin-go
Firebase Admin Go SDK v3.2.0
- The Admin SDK can now read the Firebase/Google Cloud Platform project ID from both
GCLOUD_PROJECTandGOOGLE_CLOUD_PROJECTenvironment variables.
Authentication
- The Admin SDK can now create custom tokens without being initialized with service account credentials.
- The SDK now provides a
ServiceAccountId
option specifier, which can be used to set just the client email of a service account. - When deployed in an environment managed by Google (e.g. Google App Engine), the SDK can auto discover a service account ID without any explicit configuration.
- The Admin SDK now uses a regular unauthorized HTTP client to fetch public keys when verifying ID tokens. Developers who use
VerifyIDToken()function are highly recommended to upgrade to this version, so this change will take effect. The underlying Google API that issues public keys will soon stop responding to authorized HTTP requests.
Firebase Admin Go SDK v3.1.0
- The
iidpackage now provides a set of new functions for checking various error conditions such asiid.IsInvalidArgument(),iid.IsNotFound(), etc.
Authentication
- A new
ImportUsers()function for importing users to Firebase Auth in bulk. UpdateUser()andDeleteUser()functions now correctly return aUserNotFounderror when called with a non-existing user ID.
Firebase Admin Go SDK v3.0.0
Authentication
CustomToken(),CustomTokenWithClaims()andVerifyIDToken()
functions now take aContextas the first argument.
Firebase Admin Go SDK v2.7.0
- The
authandmessagingpackages now provide a set of new functions for checking various error conditions (e.g.auth.IsIDTokenRevoked(),messaging.IsInvalidArgument()etc).
Cloud Messaging
- Added the
MutableContentfield to themessaging.Apstype. This can be used to set themutable-contentproperty when sending FCM messages to APNs targets. - Added support for specifying arbitrary key-value fields in the
Apstype. - Improved error handling in the
messagingAPI. The returned errors now contain additional details.
Firebase Admin Go SDK v2.6.1
Version support
- [added] Added support for Go 1.6.
FCM
- [changed] Fixed a bug in the
UnsubscribeFromTopic()function.
Auth
- [changed] Improved the error message returned by
GetUser(),
GetUserByEmail()andGetUserByPhoneNumber()APIs inauthpackage.
Firebase Admin Go SDK v2.6.0
- A new
dbpackage that facilitates basic data manipulation operations (create, read, update and delete), conditional updates (transactions) and advanced queries. Currently, this API does not support realtime event listeners. - Updated all packages to import the standard
contextpackage available in golang1.7 and above.
Firebase Admin Go SDK v2.5.0
Firebase Cloud Messaging
- A new
messagingpackage for sendingmessagingmessages and managing topic subscriptions. - A new
Send()function for sendingmessagingmessages. - A new
SubscribeToTopic()function for subscribing a list of device registration tokens to amessagingtopic. - A new
UnubscribeFromTopic()function for unsubscribing a list of device registration tokens from amessagingtopic.
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
TokensValidAfterMillishas been added to theauth.UserRecordtype.
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.Configloaded from theFIREBASE_CONFIGenvironment variable.
Authentication
- The user management operations in the
authpackage now uses theidentitytoolkit/v3library. - The
ProviderIDfield onauth.UserRecordtype is now set to the constant valuefirebase.
Firebase Admin Go SDK v2.3.0
- A new
InstanceIDAPI that facilitates deleting instance IDs and associated user data from Firebase projects.
Firebase Admin Go SDK v2.2.1
- Adding the
X-Client-Versionto the headers in the API calls for tracking API usage.