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

onAccountLogin #

abstract suspend fun onAccountLogin(pragmaAccount: PragmaAccount)

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

Used by

  • AccountService.authenticateOrCreateV2

Parameters #

pragmaAccount

PragmaAccount of the user logging in.