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)