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 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.
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.
The text was updated successfully, but these errors were encountered:
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
The types for
auth.createUser()
(i.e.CreateRequest
) inherit fromUpdateRequest
and therefore inherit types forproviderToLink
andprovidersToUnlink
. However these parameters are not supported (they are ignored) by the underlyingPOST /accounts
REST API.firebase-admin-node/src/auth/auth-config.ts
Line 234 in 910460d
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.The text was updated successfully, but these errors were encountered: