Releases: firebase/firebase-admin-go
Releases · firebase/firebase-admin-go
Firebase Admin Go SDK v3.5.0
- Dropped support for Go 1.8 and earlier.
Cloud Messaging
messaging.AndroidNotification
type now supports specifying achannel_id
when sending messages to Android O devices. Thanks chemidy for the contribution.messaging.ApsAlert
type now supports specifying a subtitle. Thanks chemidy for the contribution.messaging.WebpushNotification
type now supports specifying additional FCM options. Thanks chemidy for the contribution.- Improved error handling by requesting a more verbose error response from the FCM backend service.
Realtime Database
- Fixed how the SDK handles special characters in node names.
Firebase Admin Go SDK v3.4.0
Firebase Database
firebase.App
provides a newDatabaseWithURL()
function that can be used to initialize clients that connect to different database instances in the same Firebase project.
Firebase Admin Go SDK v3.3.0
Authentication
- Fixed a regression introduced in the 3.2.0 release, where
VerifyIDToken()
cannot be used in Google App Engine.
Cloud Messaging
messaging.WebpushNotification
type now supports arbitrary key-value pairs in its payload.
Firebase Admin Go SDK v3.2.0
- The Admin SDK can now read the Firebase/Google Cloud Platform project ID from both
GCLOUD_PROJECT
andGOOGLE_CLOUD_PROJECT
environment 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
iid
package 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 aUserNotFound
error when called with a non-existing user ID.
Firebase Admin Go SDK v3.0.0
Authentication
CustomToken()
,CustomTokenWithClaims()
andVerifyIDToken()
functions now take aContext
as the first argument.
Firebase Admin Go SDK v2.7.0
- The
auth
andmessaging
packages now provide a set of new functions for checking various error conditions (e.g.auth.IsIDTokenRevoked()
,messaging.IsInvalidArgument()
etc).
Cloud Messaging
- Added the
MutableContent
field to themessaging.Aps
type. This can be used to set themutable-content
property when sending FCM messages to APNs targets. - Added support for specifying arbitrary key-value fields in the
Aps
type. - Improved error handling in the
messaging
API. 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 inauth
package.
Firebase Admin Go SDK v2.6.0
- A new
db
package 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
context
package available in golang1.7 and above.
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.