Releases: firebase/firebase-admin-go
Releases · firebase/firebase-admin-go
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.TenantManagerAPI for creating, updating, retrieving, and deleting authentication tenants. - Added
auth.TenantClientAPI 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.ExportedUserRecordno longer exposes password hashes that are redacted due to lack of permissions in the service account credentials. - Added
auth.OIDCProviderConfigtype and the related functions to create, retrieve, update and delete OIDC auth provider configurations. - Added
auth.SAMLProviderConfigtype 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
MulticastMessageandSendMulticast()APIs for sending notifications to multiple recipients. - Added support for specifying the analytics label for notifications via
AndroidFCMOptions,APNSFCMOptionsandFCMOptionstypes. 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
authpackage now automatically retry RPC calls failing due to I/O or HTTP errors.
Firebase Admin Go SDK v3.7.0
- Enabled automatic HTTP retries for the APIs in
db,messagingandiidpackages.
Firebase Auth
- A new
SessionCookie()function for creating a session cookie from a Firebase ID token. - A new
VerifySessionCookie()function for validating a given session cookie string.
Firebase Admin Go SDK v3.6.0
Firebase Cloud Messaging
- The
messaging.Apstype now supports configuring a critical alert sound. A newmessaging.CriticalSoundtype has been introduced for this purpose. - Public types in the
messagingpackage 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
- Dropped support for Go 1.8 and earlier.
Cloud Messaging
messaging.AndroidNotificationtype now supports specifying achannel_idwhen sending messages to Android O devices. Thanks chemidy for the contribution.messaging.ApsAlerttype now supports specifying a subtitle. Thanks chemidy for the contribution.messaging.WebpushNotificationtype 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
Firebase Database
firebase.Appprovides a newDatabaseWithURL()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
Authentication
- Fixed a regression introduced in the 3.2.0 release, where
VerifyIDToken()cannot be used in Google App Engine.
Cloud Messaging
messaging.WebpushNotificationtype now supports arbitrary key-value pairs in its payload.