Loading...
Was this page helpful?
This documentation provides a reference to the sdk.auth.updateProvider
method used to send requests to Medusa's Authentication API routes. It can be used for admin users, customers, or custom actor types.
This method is used to update user-related data authentication data.
More specifically, use this method when updating the password of an admin user, customer, or custom actor type after requesting to reset their password with resetPassword.
This method sends a request to this API route.
Related guide: How to allow customers to reset their passwords in a storefront.
actor
stringuser
for admin user, or customer
for customer.provider
stringemailpass
.password
property.token
stringPromise
Promise<void>