{"version":3,"file":"password-reset.cjs","names":[],"sources":["../../../../src/rest/commands/auth/password-reset.ts"],"sourcesContent":["import type { RestCommand } from '../../types.js';\n\n/**\n * The request a password reset endpoint sends an email with a link to the admin app (or a custom route) which in turn uses this endpoint to allow the user to reset their password.\n *\n * @param token Password reset token, as provided in the email sent by the request endpoint.\n * @param password New password for the user.\n *\n * @returns Empty body.\n */\nexport const passwordReset =\n\t<Schema>(token: string, password: string): RestCommand<void, Schema> =>\n\t() => ({\n\t\tpath: '/auth/password/reset',\n\t\tmethod: 'POST',\n\t\tbody: JSON.stringify({ token, password }),\n\t});\n"],"mappings":"AAUA,MAAa,GACH,EAAe,SACjB,CACN,KAAM,uBACN,OAAQ,OACR,KAAM,KAAK,UAAU,CAAE,QAAO,WAAU,CAAC,CACzC"}