Skip to content

Commit

Permalink
Merge pull request #117 from rootstrap/fix/update-forget-password-end…
Browse files Browse the repository at this point in the history
…point

fix: fix forget password endpoint
  • Loading branch information
guillermomachado authored Jan 16, 2025
2 parents 51c59f9 + 1b14f0c commit 05f9f2f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/api/auth/use-forgot-password.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,16 @@ type Response = {
message: string;
};

// Should be replaced with the app's web url.
const redirectUrl = 'https://example.com';

const sendForgotPasswordInstructions = async (variables: Variables) => {
const { data } = await client({
url: 'auth/forgot-password', // Dummy endpoint for forgot password
url: '/v1/users/password', // Dummy endpoint for forgot password
method: 'POST',
data: {
email: variables.email,
redirect_url: redirectUrl,
},
headers: {
'Content-Type': 'application/json',
Expand Down

0 comments on commit 05f9f2f

Please sign in to comment.