Skip to content

Type of the field provider is mismatching in the bodyParameters for link method in user management apis #963

@ghost

Description

Checklist

  • I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
  • I have looked into the API documentation and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

The field provider is defined as string in the interfaces UserIdentities and GetUsers200ResponseOneOfInnerIdentitiesInner. But for the method link in users section of the management api client, the optional field provider in the bodyParameters of type PostIdentitiesRequest is defined as PostIdentitiesRequestProviderEnum. Due to this, one can't simply extract identitites from a user profile and loop it to link as suggested in the documentation, Since it throws a type mismatch error for provider.

Reproduction

The scenario is finding every account with same email id and linking it together.

Additional context

No response

node-auth0 version

4.0.1

Node.js version

18

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions