Skip to content

checkResetLinkIsValid ​

Overview ​

Checks with the server whether a password reset link is still valid. Rejects with InvalidResetPasswordLinkError when the server answers 400.

Signature ​

checkResetLinkIsValid(params)

Parameters ​

NameTypeRequiredDescription
paramsobjectyesThe values from the reset link.

params Properties ​

NameTypeRequiredDefaultDescription
pkstringThe encoded user id.
tokenstringThe reset token.

Returns ​

Promise

The decoded response data, with a detail message.

Source ​

client/lib/stores/storeUser.js:709