social-common / pragma.account / AccountPlugin / onAccountUnlink /
onAccountUnlink #
abstract suspend fun onAccountUnlink(pragmaAccount: PragmaAccount, idProviderAccount: IdProviderAccount)
Called before a user unlinks their account from an existing identity provider Use this to perform any actions before an account unlink occurs Or throw an application error to prevent the unlink from occurring
Used by
- AccountService.unlinkIdentityProviderAccountV2
- AccountService.deleteIdentityProviderAccountOperatorV1
- AccountService.deleteIdentityProviderAccountPartnerV1
- AccountService.deleteIdentityProviderAccountServiceV1
Parameters #
pragmaAccount | PragmaAccount of the user |
idProviderAccount | IdProviderAccount for the account being unlinked |