Skip to content

Releases: firebase/firebase-admin-go

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.

Firebase Admin Go SDK v2.5.0

14 Feb 21:51
f1f98c4
Compare
Choose a tag to compare

Firebase Cloud Messaging

  • A new messaging package for sending messaging messages and managing topic subscriptions.
  • A new Send() function for sending messaging messages.
  • A new SubscribeToTopic() function for subscribing a list of device registration tokens to a messaging topic.
  • A new UnubscribeFromTopic() function for unsubscribing a list of device registration tokens from a messaging topic.

Firebase Auth

Firebase Admin Go SDK v2.4.0

11 Jan 22:15
Compare
Choose a tag to compare

Initialization

  • The firebase.NewApp() method can now be invoked without any arguments. This will initialize an app using Google Application Default Credentials, and firebase.Config loaded from the FIREBASE_CONFIG environment variable.

Authentication

  • The user management operations in the auth package now uses the identitytoolkit/v3 library.
  • The ProviderID field on auth.UserRecord type is now set to the constant value firebase.