Releases: firebase/firebase-admin-go
Releases · firebase/firebase-admin-go
Firebase Admin Go SDK v4.0.0
API Changes
- Admin SDK has opted into Go modules. The package name now has the major version appended to it. Developers should use the new package name
firebase.google.com/go/v4
when installing and importing the SDK. - The
messaging.WebpushFcmOptions
type has been renamed tomessaging.WebpushFCMOptions
.
Features
- feat: Added a new
errorutils
package that provides functions for checking for platform-level error codes. - feat(fcm): Added new service-level error checking functions
IsThirdPartyAuthError()
,IsQuotaExceeded()
,IsSenderIDMismatch()
,IsUnregistered()
andIsUnavailable()
. - feat(auth): Added new service-level error checking functions
IsIDTokenInvalid()
,IsIDTokenExpired()
,IsSessionCookieInvalid()
,IsSessionCookieExpired()
andIsCertificateFetchFailed()
. These functions can be used in conjunction with the existing JWT verification APIs provided by the SDK.
Bug Fixes
- fix: Removed import path comments (#380)
- fix(fcm): Add ability to override default FCM endpoint via ClientOptions (#373)
Miscellaneous
Firebase Admin Go SDK v3.13.0
Firebase Admin Go SDK v3.12.1
Firebase Admin Go SDK v3.12.0
Cloud Messaging
- [Feature] Introduced a series of new parameters to the
AndroidNotification
type.
Authentication
- [Fixed] Fixed a bug in the
TenantIterator
type which was preventing it from listing all the tenants correctly.
Firebase Admin Go SDK v3.11.1
Authentication
- [Fixed] Minor improvements to the implementation to fix the API reference output generated by
godoc
.
Firebase Admin Go SDK v3.11.0
- Dropped support for Go 1.9 and 1.10. The Admin SDK for Go now requires Go 1.11 or higher. Thanks shogo82148 for the contribution.
Firebase Auth
- Added a new
IsInvalidEmail()
error checking function. Thanks shogo82148 for the contribution. - Added
auth.TenantManager
API for creating, updating, retrieving, and deleting authentication tenants. - Added
auth.TenantClient
API for managing users, configuring SAML/OIDC providers, and generating email action links for specific tenants.
Firebase Cloud Messaging
- Batch messaging APIs
SendAll()
andSendMulticast()
now support sending up to 500 messages in a single call.
Firebase Admin Go SDK v3.10.0
Firebase Auth
- Fixed
auth.ExportedUserRecord
no longer exposes password hashes that are redacted due to lack of permissions in the service account credentials. - Added
auth.OIDCProviderConfig
type and the related functions to create, retrieve, update and delete OIDC auth provider configurations. - Added
auth.SAMLProviderConfig
type and the related functions to create, retrieve, update and delete SAML auth provider configurations.
Firebase Cloud Messaging
- Added support for sending an image URL with notifications. Thanks chemidy for the contribution.
Firebase Admin Go SDK v3.9.0
Cloud Messaging
- Added the
SendAll()
API for sending multiple notifications as a batch. - Added
MulticastMessage
andSendMulticast()
APIs for sending notifications to multiple recipients. - Added support for specifying the analytics label for notifications via
AndroidFCMOptions
,APNSFCMOptions
andFCMOptions
types. Thanks chemidy for the contribution.
Firebase Admin Go SDK v3.8.1
- Fixed some unit tests that were failing in environments without Google Application Default credentials.
Firebase Admin Go SDK v3.8.0
Firebase Auth
- Added the email action link generation APIs for creating links for password reset, email verification and email link sign-in via
auth.PasswordResetLink()
,auth.EmailVerificationLink()
andauth.EmailSignInLink()
. Refer documentation for more details and code samples. - All APIs in the
auth
package now automatically retry RPC calls failing due to I/O or HTTP errors.