Last updated 12 months ago
OK
const response = await fetch('/auth/password-reset', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "email": "name@gmail.com" }), }); const data = await response.json();
The password reset token, sent by e-mail
const response = await fetch('/auth/password-reset/{token}', { method: 'GET', headers: {}, }); const data = await response.json();
The password for the new user
const response = await fetch('/auth/password-reset/{token}', { method: 'POST', headers: { "Content-Type": "application/json" }, body: JSON.stringify({}), }); const data = await response.json();