social / pragma.account / AccountService / updateEmailV1 /

updateEmailV1 #

@ExperimentalCoroutinesApi

suspend fun updateEmailV1(playerSession: PlayerSession, request: AccountRpc.UpdateEmailV1Request): AccountRpc.UpdateEmailV1Response

Adds or updates a user’s email. If the user already has no email or an unverified email, it will add or update the unverified email. If the user has a verified email, the verified email will not be overwritten until the user has verified the new email using AccountService.verifyEmailV1.

Plugins

  • EmailSenderPlugin.sendVerificationEmail - PragmaResultErrors can be returned and will be thrown as PragmaExceptions if present.

PragmaResultErrors

  • PragmaError.AccountService_BadRequest when email is too long.
  • PragmaError.AccountService_BadRequest when email is not a valid email.
  • PragmaError.AccountService_NotFound when the account metadata is not found.