---
url: "https://vueda.dev/v3/reference/api/js/stores/storeUser/methods/checkResetLinkIsValid.md"
title: "checkResetLinkIsValid"
---

# 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

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-params">params</span> | `object` | yes | The values from the reset link. |

#### params Properties

| Name | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| <span id="param-params-pk">pk</span> | `string` |  |  | The encoded user id. |
| <span id="param-params-token">token</span> | `string` |  |  | The reset token. |

### Returns

`Promise`

The decoded response data, with a `detail` message.

## Source

`client/lib/stores/storeUser.js:709`
