Releases: firebase/firebase-admin-node
Releases · firebase/firebase-admin-node
Firebase Admin Node.js SDK v5.2.0
- A new Cloud Storage API that facilitates accessing Google Cloud Storage buckets using the
@google-cloud/storagelibrary.
Authentication
- New type definitions for the arguments of
createUser()andupdateUser()methods.
Cloud Messaging
- Redefined the arguments of
sendToDevice()using intersection instead of overloading.
Firebase Admin Node.js SDK v5.1.0
- Added the method
getUserByPhoneNumber()to theadmin.authinterface. This method enables retrieving user profile information by a phone number. createUser()andupdateUser()methods now accept aphoneNumberproperty, which can be used to create users with a phone number field and/or update the phone number associated with a user.- Added the
phoneNumberfield toadmin.auth.UserRecord, which exposes the phone number associated with a user account. - Added the
phoneNumberfield toadmin.auth.UserInfo, which exposes the phone number associated with a user account by a linked identity provider.
Firebase Admin Node.js SDK v5.0.1
Firebase Admin Node SDK v5.0.0
- The deprecated
serviceAccountproperty in theadmin.App.Optionstype has been removed in favor of thecredentialproperty. createdAtandlastSignedInAtproperties inadmin.auth.UserMetadatahas been renamed tocreationTimeandlastSignInTime. Also these properties now provide UTC formatted string values instead ofDatevalues.- Initializing the SDK without setting a credential results in an exception.
- Initializing the SDK with a malformed private key string results in an exception.