You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Cloud Functions for Firebase SDK uses the Firebase Admin SDK as its source for a TypeScript definition of an auth.UserRecord. The auth.UserRecord currently contains the following fields:
public readonly uid: string;
public readonly email: string;
public readonly emailVerified: boolean;
public readonly displayName: string;
public readonly photoURL: string;
public readonly disabled: boolean;
public readonly metadata: UserMetadata;
public readonly providerData: UserInfo[];
However, when a Cloud Function is invoked for an Auth user creation that uses phone authentication, the UserRecord sent as a JSON object also contains a phoneNumber field:
The Cloud Functions for Firebase SDK uses the Firebase Admin SDK as its source for a TypeScript definition of an
auth.UserRecord
. Theauth.UserRecord
currently contains the following fields:However, when a Cloud Function is invoked for an Auth user creation that uses phone authentication, the UserRecord sent as a JSON object also contains a
phoneNumber
field:This new
phoneNumber
is currently hard to access for TypeScript users, since it's not yet present in theauth.UserRecord
.We should add the
phoneNumber
field to the Node.js Admin SDK.The text was updated successfully, but these errors were encountered: