Skip to content

resetPasswordCallback

GET
/reset-password/{token}
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.

token
required
string

The token to reset the password

callbackURL
required
string

The URL to redirect the user to reset their password

Redirects to the callbackURL with ?token=<token>, or with ?error=INVALID_TOKEN if the token is invalid or expired

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

X-Retry-After
integer

Seconds to wait