@mspkapps/auth-client 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/AuthClient.js +3 -3
package/package.json
CHANGED
package/src/AuthClient.js
CHANGED
|
@@ -147,14 +147,14 @@ export class AuthClient {
|
|
|
147
147
|
return json;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
async
|
|
151
|
-
const resp = await this.fetch(this._buildUrl('auth/change-password'), {
|
|
150
|
+
async requestChangePasswordLink({ email }) {
|
|
151
|
+
const resp = await this.fetch(this._buildUrl('auth/request-change-password-link'), {
|
|
152
152
|
method: 'POST',
|
|
153
153
|
headers: this._headers(),
|
|
154
154
|
body: JSON.stringify({ email })
|
|
155
155
|
});
|
|
156
156
|
const json = await safeJson(resp);
|
|
157
|
-
if (!resp.ok || json?.success === false) throw toError(resp, json, '
|
|
157
|
+
if (!resp.ok || json?.success === false) throw toError(resp, json, 'Request change password link failed');
|
|
158
158
|
return json;
|
|
159
159
|
}
|
|
160
160
|
|