fix(js-sdk): add metadata parameter to request body type of reset-password route (#14458)

* fix(js-sdk): add metadata parameter to request body type

* update changeset
This commit is contained in:
Shahed Nasser authored and GitHub committed 2026-01-06 12:36:29 +01:00
1 parent 0ffd790109
commit ab7b04dbc9
2 files changed
+11

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/js-sdk": patch
---
fix(js-sdk): add metadata parameter to request body type of reset-password route
+6
View File
@@ -304,6 +304,12 @@ export class Auth {
* this would be the user's email. * this would be the user's email.
*/ */
identifier: string identifier: string
/**
* Optional metadata to include in the reset password request.
*
* @since 2.12.4
*/
metadata?: Record<string, unknown>
} }
) => { ) => {
await this.client.fetch(`/auth/${actor}/${provider}/reset-password`, { await this.client.fetch(`/auth/${actor}/${provider}/reset-password`, {