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
{{ message }}
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.
In the API documentation the endpoint tickets/password-change responds with a ticket URL that we can distribute to the user, but the SDK only returns an error value. The ChangePassword-function has no value when the ticket isn't returned and there is no other way of getting it (I think?).
Well, after reading the source code I found out that the response is indeed returned by altering the input ticket, so it works. But it could be clearer documentation, or better separation between request and response.
Hi @nicolaigj, the general behavior of this package will not return an entity upon creation, but the entity passed by reference is updated with additional fields.
The usage and examples on pkg.go.dev were meant to demonstrate how this works, but I agree with you that this could be more explicit.
At this point, changing the signature of the entire package would be a significant undertaking, but if you would like to suggest something, by all means, feel free to do so!
Description
In the API documentation the endpoint tickets/password-change responds with a ticket URL that we can distribute to the user, but the SDK only returns an error value. The ChangePassword-function has no value when the ticket isn't returned and there is no other way of getting it (I think?).
Affected Resources
management.Ticket.ChangePassword
Potential Sample Code
References
https://auth0.com/docs/api/management/v2#!/Tickets/post_password_change
Community Note
The text was updated successfully, but these errors were encountered: