ENGLISH·COURSE API
    Preparing search index...
    • The change-email form: the address the account would move to, which has to differ from the one it holds today.

      Parameters

      • currentEmail: string

        The address the account is registered with

      Returns ZodObject<{ newEmail: ZodPipe<ZodString, ZodEmail> }, $strip>

      The schema for that account's form

      A schema per current address rather than a constant, because "already yours" is only answerable against the address the server gave the page. Better Auth refuses the same address too, but without an error code, so catching it here is what keeps the refusal a localized message.