auth0 / node-auth0

Node.js client library for the Auth0 platform.
MIT License
628 stars 307 forks source link

Not able to explicitly provide types for User fields `app_metadata` and `user_metadata` when initializing management client. #964

Closed ghost closed 10 months ago

ghost commented 10 months ago

Checklist

Describe the problem you'd like to have solved

Before v4, we were able to pass in the types for the fields app_metadata and user_metadata when initializing ManagementClient. I'd like to have this ability back.

Describe the ideal solution

Provide a way to define types for the fields app_metadata and user_metadata.

Alternatives and current workarounds

No response

Additional context

No response

adamjmcgrath commented 10 months ago

Hi @misuvii - thanks for raising this

Before v4, we were able to pass in the types for the fields app_metadata and user_metadata when initializing ManagementClient. I'd like to have this ability back.

We didn't offer types before v4. The were provided by the community via DefinitelyTyped.

Because of how we generate the Management API types, we're not able to offer this functionality. But you can always add this functionality to the types yourself:

image