Skip to main content

confirmEmailChange Mutation

Confirm the email change of the logged-in user.

Requires the AUTHENTICATED_USERpermission.

Triggers the following webhook events:

  • CUSTOMER_UPDATED (async): A customer account was updated.
  • NOTIFY_USER (async): A notification that account email change was confirmed.
  • ACCOUNT_EMAIL_CHANGED (async): An account email was changed.
confirmEmailChange(
channel: String
token: String!
): ConfirmEmailChange
Show return type

Arguments

channel ● String

Slug of a channel which will be used to notify users. Optional when only one channel exists.

token ● String!

A one-time token required to change the email.

Type

ConfirmEmailChange

Confirm the email change of the logged-in user.

Requires the AUTHENTICATED_USERpermission.

Triggers the following webhook events:

  • CUSTOMER_UPDATED (async): A customer account was updated.
  • NOTIFY_USER (async): A notification that account email change was confirmed.
  • ACCOUNT_EMAIL_CHANGED (async): An account email was changed.