---
id: reset-password-email
title: "Reset Password (Email)"
slug: reset-password-email
custom_edit_url: https://github.com/supabase/supabase/edit/master/web/spec/supabase.yml
---
import Tabs from '@theme/Tabs';
import TabsPanel from '@theme/TabsPanel';
Sends a reset request to an email address.
```js
const { data, error } = supabase.auth.api
.resetPasswordForEmail('user@email.com')
```
## Parameters
## Notes
Sends a reset request to an email address.
When the user clicks the reset link in the email they will be forwarded to:
`#access_token=x&refresh_token=y&expires_in=z&token_type=bearer&type=recovery`
Your app must detect `type=recovery` in the fragment and display a password reset form to the user.
You should then use the access_token in the url and new password to update the user as follows:
```js
const { error, data } = await supabase.auth.api
.updateUser(access_token, { password : new_password })
```
## Examples
### Reset password
```js
const { data, error } = supabase.auth.api
.resetPasswordForEmail('user@email.com')
```