Releases: firebase/firebase-admin-go
Releases · firebase/firebase-admin-go
Firebase Admin Go SDK v3.7.0
- Enabled automatic HTTP retries for the APIs in
db
,messaging
andiid
packages.
Firebase Auth
- A new
SessionCookie()
function for creating a session cookie from a Firebase ID token. - A new
VerifySessionCookie()
function for validating a given session cookie string.
Firebase Admin Go SDK v3.6.0
Firebase Cloud Messaging
- The
messaging.Aps
type now supports configuring a critical alert sound. A newmessaging.CriticalSound
type has been introduced for this purpose. - Public types in the
messaging
package now support correct JSON unmarshalling.
Firebase Auth
- The
VerifyIDToken()
function now tolerates a clock skew of up to 5 minutes when comparing JWT timestamps.
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.