social-common / pragma.account / AccountPlugin / onAccountLogin /

onAccountLogin #

abstract suspend fun onAccountLogin(pragmaAccount: PragmaAccount, idProviderAccount: IdProviderAccount)

Called when an account is authenticated. Use this to make any desired updates to the user’s account. Or to block login by throwing AccountRpc.UnauthorizedApplicationError.

Used by

  • AccountService.authenticateOrCreateV2

Parameters #

pragmaAccount

PragmaAccount of the user logging in.

idProviderAccount

IdProviderAccount used for this login.