Skip to content

Releases: firebase/firebase-admin-go

Firebase Admin Go SDK v3.6.0

16 Jan 23:07
f1dcecc
Compare
Choose a tag to compare

Firebase Cloud Messaging

  • The messaging.Aps type now supports configuring a critical alert sound. A new messaging.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

04 Dec 21:22
d661738
Compare
Choose a tag to compare
  • Dropped support for Go 1.8 and earlier.

Cloud Messaging

  • messaging.AndroidNotification type now supports specifying a channel_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

14 Sep 17:29
Compare
Choose a tag to compare

Firebase Database

  • firebase.App provides a new DatabaseWithURL() 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

09 Aug 20:05
64bf7fb
Compare
Choose a tag to compare

Authentication

  • Fixed a regression introduced in the 3.2.0 release, where VerifyIDToken() cannot be used in Google App Engine.

Cloud Messaging

Firebase Admin Go SDK v3.2.0

17 Jul 20:32
1d2a52c
Compare
Choose a tag to compare
  • The Admin SDK can now read the Firebase/Google Cloud Platform project ID from both GCLOUD_PROJECT and GOOGLE_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

12 Jun 21:51
10499b4
Compare
Choose a tag to compare
  • The iid package now provides a set of new functions for checking various error conditions such as iid.IsInvalidArgument(), iid.IsNotFound(), etc.

Authentication

  • A new ImportUsers() function for importing users to Firebase Auth in bulk.
  • UpdateUser() and DeleteUser() functions now correctly return a UserNotFound error when called with a non-existing user ID.

Firebase Admin Go SDK v3.0.0

08 May 17:29
8bf0710
Compare
Choose a tag to compare

Authentication

  • CustomToken(), CustomTokenWithClaims() and VerifyIDToken()
    functions now take a Context as the first argument.

Firebase Admin Go SDK v2.7.0

17 Apr 20:37
7f0a0da
Compare
Choose a tag to compare
  • The auth and messaging 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 the messaging.Aps type. This can be used to set the mutable-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

15 Mar 20:35
Compare
Choose a tag to compare

Version support

  • [added] Added support for Go 1.6.

FCM

Auth

  • [changed] Improved the error message returned by GetUser(),
    GetUserByEmail() and GetUserByPhoneNumber() APIs in auth package.

Firebase Admin Go SDK v2.6.0

28 Feb 21:45
357ed71
Compare
Choose a tag to compare
  • 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.