resetPasswordCallback
GET
/reset-password/{token}
const url = 'http://localhost:4000/api/auth/reset-password/example?callbackURL=example';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:4000/api/auth/reset-password/example?callbackURL=example'Redirects the user to the callback URL with the token
The link in the reset email. Redirects (302) to the callbackURL (the hosted /reset-password page) with the token; POST it to /reset-password with the new password.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”token
required
string
The token to reset the password
Query Parameters
Section titled “Query Parameters”callbackURL
required
string
The URL to redirect the user to reset their password
Responses
Section titled “Responses”Redirects to the callbackURL with ?token=<token>, or with ?error=INVALID_TOKEN if the token is invalid or expired
Headers
Section titled “Headers”Location
string
The callbackURL failed validation. Use a safe relative path or an absolute URL on a trusted origin (BASE_URL or an ALLOWED_HOSTS origin).
Media typeapplication/json
Example
{ "message": "Invalid callbackURL", "code": "INVALID_CALLBACK_URL"}Too many requests
Headers
Section titled “Headers”X-Retry-After
integer
Seconds to wait