Releases: firebase/firebase-admin-go
Releases · firebase/firebase-admin-go
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.
Firebase Admin Go SDK v2.4.0
Initialization
- The
firebase.NewApp()
method can now be invoked without any arguments. This will initialize an app using Google Application Default Credentials, andfirebase.Config
loaded from theFIREBASE_CONFIG
environment variable.
Authentication
- The user management operations in the
auth
package now uses theidentitytoolkit/v3
library. - The
ProviderID
field onauth.UserRecord
type is now set to the constant valuefirebase
.
Firebase Admin Go SDK v2.3.0
- A new
InstanceID
API that facilitates deleting instance IDs and associated user data from Firebase projects.
Firebase Admin Go SDK v2.2.1
- Adding the
X-Client-Version
to the headers in the API calls for tracking API usage.
Firebase Admin Go SDK v2.2.0
- A new user management API that supports querying and updating
user accounts associated with a Firebase project. This addsGetUser()
,
GetUserByEmail()
,GetUserByPhoneNumber()
,CreateUser()
,UpdateUser()
,
DeleteUser()
,Users()
andSetCustomUserClaims()
functions to the
auth.Client
API.
Firebase Admin Go SDK v2.1.0
- A new
Firestore()
API that enables access to Cloud Firestore databases.