We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51c59f9 commit 1b14f0cCopy full SHA for 1b14f0c
src/api/auth/use-forgot-password.ts
@@ -10,12 +10,16 @@ type Response = {
10
message: string;
11
};
12
13
+// Should be replaced with the app's web url.
14
+const redirectUrl = 'https://example.com';
15
+
16
const sendForgotPasswordInstructions = async (variables: Variables) => {
17
const { data } = await client({
- url: 'auth/forgot-password', // Dummy endpoint for forgot password
18
+ url: '/v1/users/password', // Dummy endpoint for forgot password
19
method: 'POST',
20
data: {
21
email: variables.email,
22
+ redirect_url: redirectUrl,
23
},
24
headers: {
25
'Content-Type': 'application/json',
0 commit comments