Skip to content

Commit 1b14f0c

Browse files
author
Guillermo Machado
committed
fix: fix forget password endpoint
1 parent 51c59f9 commit 1b14f0c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/api/auth/use-forgot-password.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,16 @@ type Response = {
1010
message: string;
1111
};
1212

13+
// Should be replaced with the app's web url.
14+
const redirectUrl = 'https://example.com';
15+
1316
const sendForgotPasswordInstructions = async (variables: Variables) => {
1417
const { data } = await client({
15-
url: 'auth/forgot-password', // Dummy endpoint for forgot password
18+
url: '/v1/users/password', // Dummy endpoint for forgot password
1619
method: 'POST',
1720
data: {
1821
email: variables.email,
22+
redirect_url: redirectUrl,
1923
},
2024
headers: {
2125
'Content-Type': 'application/json',

0 commit comments

Comments
 (0)