Releases: firebase/firebase-admin-node
Releases · firebase/firebase-admin-node
Firebase Admin Node.js SDK v5.4.1
- Upgraded the Firestore client dependency to 0.8.1, which resolves the installation issues reported in the Yarn environment.
Firebase Admin Node.js SDK v5.4.0
- A new
admin.firestore()
API that facilitates accessing Google Cloud Firestore databases using the@google-cloud/firestore
library. See Set Up Your Node.js App for Cloud Firestore to get started.
Firebase Admin Node.js SDK v5.3.0
- SDK now retries outbound HTTP calls on all low-level I/O errors.
Authentication
- A new
setCustomUserClaims()
method for setting custom claims on user accounts. Custom claims set via this method become available on the ID tokens of the corresponding users when they sign in. To learn how to use this API for controlling access to Firebase resources, see Control Access with Custom Claims and Security Rules. - A new
listUsers()
method for listing all the users in a Firebase project in batches.
Storage
- Declared a more concrete TypeScript return type (
Bucket
) for thebucket()
method in the {{storage}} API.
Firebase Admin Node.js SDK v5.2.1
- A bug in the TypeScript type declarations that come bundled with the SDK (
index.d.ts
) has been fixed (#70).
Firebase Admin Node.js SDK v5.2.0
- A new Cloud Storage API that facilitates accessing Google Cloud Storage buckets using the
@google-cloud/storage
library.
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.auth
interface. This method enables retrieving user profile information by a phone number. createUser()
andupdateUser()
methods now accept aphoneNumber
property, which can be used to create users with a phone number field and/or update the phone number associated with a user.- Added the
phoneNumber
field toadmin.auth.UserRecord
, which exposes the phone number associated with a user account. - Added the
phoneNumber
field 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
serviceAccount
property in theadmin.App.Options
type has been removed in favor of thecredential
property. createdAt
andlastSignedInAt
properties inadmin.auth.UserMetadata
has been renamed tocreationTime
andlastSignInTime
. Also these properties now provide UTC formatted string values instead ofDate
values.- Initializing the SDK without setting a credential results in an exception.
- Initializing the SDK with a malformed private key string results in an exception.