@bagelink/sdk 0.0.853 → 0.0.857
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/bin/authClientCode.ts +2 -2
- package/package.json +1 -1
package/bin/authClientCode.ts
CHANGED
|
@@ -2,7 +2,7 @@ import type { AxiosInstance } from 'axios'
|
|
|
2
2
|
// @ts-expect-error - required for axios to work
|
|
3
3
|
import { axios } from './api'
|
|
4
4
|
|
|
5
|
-
export interface
|
|
5
|
+
export interface NewPasswordPayload {
|
|
6
6
|
token: string
|
|
7
7
|
new_password: string
|
|
8
8
|
}
|
|
@@ -39,7 +39,7 @@ export async function passwordRecovery(email?: string) {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
export async function resetPassword(
|
|
42
|
-
newPassword:
|
|
42
|
+
newPassword: NewPasswordPayload['new_password']
|
|
43
43
|
) {
|
|
44
44
|
return ax.post('/auth/reset-password', { new_password: newPassword })
|
|
45
45
|
}
|