social / pragma.account / AccountService / unlinkIdentityProviderAccountV2 /

unlinkIdentityProviderAccountV2 #

suspend fun unlinkIdentityProviderAccountV2(playerSession: PlayerSession, request: AccountRpc.UnlinkIdentityProviderAccountV2Request): AccountRpc.UnlinkIdentityProviderAccountV2Response

Disassociates an existing Identity Provider from an existing Pragma account. In the case of the Pragma account or id provider not existing, no error will be thrown.

Plugins

  • AccountPlugin.onAccountUnlink - Called before a user unlinks their account from an existing identity provider

PragmaApplicationErrors

  • AccountRpc.IdProviderUnlinkingDisabledApplicationError when account unlinking is disabled via config.
  • AccountRpc.CannotUnlinkOnlyLoginIdProviderApplicationError when trying to unlink the last remaining id provider from an account.
  • AccountRpc.IdProviderUnlinkingDisabledApplicationError when the ability to unlink an id provider is disabled.