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.
PragmaApplicationErrors
- AccountRpc.PragmaSocialIdNotFoundApplicationError when a personal identity can’t be found for the given social id
PragmaResultErrors
- PragmaError.AccountService_BadRequest when email is too long.
- PragmaError.AccountService_BadRequest when email is not a valid email.