Skip to content

auth.createUser() incorrect types: cannot link provider on account creation #2450

Closed

Description

@brettwillis

[REQUIRED] Step 2: Describe your environment

  • Operating System version: N/A
  • Firebase SDK version: 12.0.0
  • Firebase Product: auth
  • Node.js version: N/A
  • NPM version: N/A

[REQUIRED] Step 3: Describe the problem

The types for auth.createUser() (i.e. CreateRequest) inherit from UpdateRequest and therefore inherit types for providerToLink and providersToUnlink. However these parameters are not supported (they are ignored) by the underlying POST /accounts REST API.

export interface CreateRequest extends UpdateRequest {

This is a misrepresentation. Based on the REST API, provider credentials cannot be linked while creating an account, only on a subsequent POST /accounts:update request.

While we're at it the UpdateRequest type does not include custom claims, which is supported by the /accounts:update REST API. See #1882.

Activity

  1. self-assigned this
    on May 28, 2026
  2. lahirumaramba commented on Jun 9, 2026

    @lahirumaramba
    Member

    This is resolved in version 14.0.0. If you continue to encounter issues, please open a new issue with the relevant details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions