firebase-admin-node icon indicating copy to clipboard operation
firebase-admin-node copied to clipboard

Incorrect type for CreateRequest.phoneNumber

Open clintonb opened this issue 8 months ago • 1 comments

[READ] Step 1: Are you in the right place?

  • For issues related to the code in this repository file a Github issue.
  • If the issue pertains to Cloud Firestore, read the instructions in the "Firestore issue" template.
  • For general technical questions, post a question on StackOverflow with the firebase tag.
  • For general Firebase discussion, use the firebase-talk google group.
  • For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel.

[REQUIRED] Step 2: Describe your environment

  • Operating System version: _____
  • Firebase SDK version: 13.4.0
  • Firebase Product: auth
  • Node.js version: 22.11
  • NPM version: ??? (I use pnpm)

[REQUIRED] Step 3: Describe the problem

Per https://github.com/firebase/firebase-admin-node/issues/1508, phoneNumber is not nullable for create requests.

Steps to reproduce:

  1. Try to create a user with phoneNumber = null.
  2. Get an error from the API

clintonb avatar May 27 '25 23:05 clintonb

This is also somewhat related to https://github.com/firebase/firebase-admin-node/issues/2450.

clintonb avatar May 27 '25 23:05 clintonb