> For the complete documentation index, see [llms.txt](https://estare.gitbook.io/firebase-auth-firestore-and-storage-plugin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://estare.gitbook.io/firebase-auth-firestore-and-storage-plugin/plugin-front-end-actions/firebase-auth/update-users-email.md).

# Update User's Email

This action will update the current user's email address.

***

## <mark style="color:blue;">Inputs and Settings</mark>

<div align="left"><figure><img src="https://284736847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiWu3FezEjWxrPbkf8zIP%2Fuploads%2F2TcZP2t2YH382pTDdlf7%2Fimage.png?alt=media&amp;token=0c9e59f4-55d5-4b7c-b14d-679d3cb822be" alt=""><figcaption></figcaption></figure></div>

### Password

The current user's password. Required to confirm the operation.

### New Email

The new email address to be linked to the user's account.

### Update email field on the user's document

Check this box if you'd like to not only update the user's profile on the Firebase Authentication service, but also on the user's document on Firestore.

### User Collection

The name or ID of the collection where user's data is stored. The related document will have the same ID that user has on the authentication service.

### Trigger ID (optional)

This will link the action with a [Action Listener](/firebase-auth-firestore-and-storage-plugin/plugin-elements/firebase-action-listener.md) of the same ID.&#x20;

If left blank, all listeners on the page with blank ID's will be triggered at the same time, so we suggest to always define a Trigger ID.

When the function finishes running, it will trigger the [User Updated](https://estare.gitbook.io/firebase-auth-firestore-and-storage-plugin/plugin-elements/firebase-action-listener#user-updated) event, storing the user's ID and the new Email on the listener's states.

***

## <mark style="color:blue;">Triggered events</mark>

Those events are triggered by an [Action Listener](/firebase-auth-firestore-and-storage-plugin/plugin-elements/firebase-action-listener.md) with the same ID as the [Trigger ID](#trigger-id-optional) provided on the action.

* User Updated (if the action was successful)
* Error in Action (if an error occurs)

***

## <mark style="color:blue;">Stored values on the listener</mark>

### User ID

The current user's ID.

### User Email

The current user's email address.
