BETTER-AUTH. UI
Mutations

useChangeEmail

Change the current user's email address.

Usage

import { changeEmailOptions } from "@better-auth-ui/core"
import { useMutation } from "@tanstack/solid-query"

const changeEmail = useMutation(() => changeEmailOptions(authClient))

changeEmail.mutate({ newEmail: "[email protected]" })

Params

Prop

Type

Last updated on

On this page