The Clerk external account resource, one entry of Clerk.User's
externalAccounts: an OAuth account the user has connected.
Decode an ExternalAccount from the JSON the shim sends.
{ "id": "eac_1"
, "identificationId": "idn_4"
, "provider": "google"
, "providerUserId": "1234567890"
, "emailAddress": "[email protected]"
, "approvedScopes": "email profile"
, "firstName": "Ada"
, "lastName": "Lovelace"
, "imageUrl": "https://img.clerk.com/ada"
, "username": null
, "phoneNumber": null
, "label": null
, "publicMetadata": {}
, "verification": Verification
}
One connected OAuth account.
approvedScopesis the space separated scope string exactly as the provider returned it.publicMetadatais passed through untouched as a JSON value, which is always an object.