social / pragma.account / AccountService / linkIdentityProviderAccountV2 /

linkIdentityProviderAccountV2 #

suspend fun linkIdentityProviderAccountV2(session: PlayerSession, request: AccountRpc.LinkIdentityProviderAccountV2Request): AccountRpc.LinkIdentityProviderAccountV2Response

Associates a new Identity Provider with an existing Pragma account.

Plugins

  • IdentityProvider.canAuthenticate
  • IdentityProvider.validate - PragmaResultErrors returned are just thrown as PragmaExceptions

PragmaResultErrors

  • PragmaError.AccountService_IdProviderMissing when trying to use an unknown or unconfigured IdentityProvider.
  • PragmaError.AccountService_IdProviderLinkingDisabled when trying to link an Id Provider that has linking disabled.
  • PragmaError.AccountService_IdProviderAlreadyAssociated when the Id Provider account is already associated with a Pragma account.
  • PragmaError.AccountService_AccountAlreadyBoundToProviderType when the Pragma account already has the requested Id Provider account associated with it.