social-common / pragma.account / IdentityProvider / validate /

validate #

abstract suspend fun validate(providerToken: String): IdProviderAccount

Performs the necessary validation on the token and if it is valid, returns account information populated from the Identity Provider.

Used by

  • AccountService.authenticateOrCreateV2
  • AccountService.loadTestBulkCreateAccountsOperatorV1
  • AccountService.linkIdentityProviderAccountV1
  • AccountService.linkIdentityProviderAccountPartnerV1

Return #

IdProviderAccount Return if token is valid.

Parameters #

providerToken

Token provided by the underlying Identity Provider