medusajs / medusa

The world's most flexible commerce platform.
https://medusajs.com
MIT License
26.19k stars 2.65k forks source link

Docs (Code Issue): example is wrong resources/commerce-modules/auth/auth-flows#reset-password #10251

Closed xqSimone closed 2 days ago

xqSimone commented 3 days ago

What Medusa version and documentation are you using?

v2

Preliminary Checks

Issue Summary

The example for user's password reset is wrong

update should be updateProvider and email as parameter stopped working after the last (i believe) update, now it appears to be working with entity_id

const { success } = await authModuleService.updateProvider(
  "emailpass",
  // passed to the auth provider
  {
    entity_id: "user@example.com",
    password: "supersecret",
  }
)

if (success) {
  // password reset successfully
}

How can this issue be resolved?

1. 2. 3. ...

Are you interested in working on this issue?

xqSimone commented 3 days ago

https://github.com/medusajs/medusa/pull/10253