Firebase Admin Go SDK Release Notes

To see release notes for the Firebase console and for other Firebase platforms and related SDKs, see the Firebase Release Notes.

Version 3.1.0 - June 12, 2018

  • 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.

Version 3.0.0 - May 8, 2018

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

Version 2.7.0 - April 17, 2018

  • The auth and messaging packages now provide a set of new functions for checking various error conditions (for example, 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.

Version 2.6.1 - March 15, 2018

Cloud Messaging

Version support

  • Support for go version 1.6.

Version 2.6.0 - February 28, 2018

Realtime Database

  • 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.

Version 2.5.0 - February 14, 2018

Cloud Messaging

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

Authentication

Version 2.4.0 - January 11, 2018

Initialization

  • The firebase.NewApp() method can now be invoked without any arguments. This initializes 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 the auth.UserRecord type is now set to the constant value firebase.

Version 2.3.0 - December 21, 2017

  • A new InstanceID API that facilitates deleting instance IDs and associated user data from Firebase projects.

Version 2.2.1 - December 13, 2017

Authentication

  • Adding the X-Client-Version to the headers in the API calls for tracking API usage.

Version 2.2.0 - December 08, 2017

Authentication

  • A new user management API that supports querying and updating user accounts associated with a Firebase project. This adds GetUser(), GetUserByEmail(), GetUserByPhoneNumber(), CreateUser(), UpdateUser(), DeleteUser(), Users() and SetCustomUserClaims() functions to the auth.Client API.

Version 2.1.0 - November 07, 2017

Version 2.0.0 - October 13, 2017

Authentication

  • The Auth() API now accepts a Context argument. This breaking change enables passing different contexts to different services, instead of using a single context per App.

Version 1.0.2 - September 13, 2017

Authentication

  • When deployed in the Google App Engine environment, the SDK can now leverage the utilities provided by the App Engine SDK to sign JWT tokens. As a result, it is now possible to initialize the Admin SDK in App Engine without a service account JSON file, and still be able to call CustomToken() and CustomTokenWithClaims().

Version 1.0.1 - September 07, 2017

Authentication

  • Now uses the client options provided during SDK initialization to create the http.Client that is used to fetch public key certificates. This enables developers to use the ID token verification feature in environments like Google App Engine by providing a platform-specific http.Client using option.WithHTTPClient().

Version 1.0.0 - August 30, 2017

  • Initial release of the Admin Go SDK. See Add the Firebase Admin SDK to your Server to get started.
  • You can configure the SDK to use service account credentials, user credentials (refresh tokens), or Google Cloud application default credentials to access your Firebase project.

Authentication

  • The initial release includes the CustomToken(), CustomTokenWithClaims(), and VerifyIDToken() functions for minting custom authentication tokens and verifying Firebase ID tokens.

Send feedback about...

Need help? Visit our support page.