• Changes the users email. Use this when using basic auth.

    Parameters

    • oldEmail: string

      Old email for reauthentication.

    • password: string

      Old password for reauthentication.

    • newEmail: string

      New email for the user.

    • Optional sendVerificationEmail: boolean = true

      Send a verification email to the old address before changing the email?

    • Optional callbackStateVariable: Variable

      The variable where to store the result.

    Returns void