Open Source Release v4.0.0
Features
- Added support for phone number authentication using the following APIs:
- Augmented the IdP data (for a list of all supported fields see
firebase.auth.UserCredential) returned by the following APIs: - Added the
firebase.auth.Auth.prototype.onIdTokenChangedmethod that triggers on ID token changes.
Breaking Changes
firebase.auth.Auth.prototype.onAuthStateChangednow triggers on sign in and sign out.firebase.User.prototype.reauthenticatehas been removed in favor offirebase.User.prototype.reauthenticateWithCredential.firebase.User.prototype.linkhas been removed in favor offirebase.User.prototype.linkWithCredential.firebase.AuthCredential.prototype.providerhas been removed in favor offirebase.AuthCredential.prototype.providerId.
Deprecations
- Removed support for deprecated
serviceAccountandcredentialproperties from the Node.js SDK. If you were previously using the Firebase Javascript SDK to use these properties, use the Firebase Admin Node.js SDK instead. - Deprecated
firebase.User.prototype.getTokenin favor offirebase.User.prototype.getIdToken.
Fixes
- Fixed an issue where
firebase.User.prototype.updateProfilewas not triggering an update in password provider data.