The Clerk enterprise account resource, one entry of Clerk.User's
enterpriseAccounts: an account the user holds through enterprise SSO.
Decode an EnterpriseAccount from the JSON the shim sends.
{ "id": "eac_2"
, "active": true
, "emailAddress": "[email protected]"
, "enterpriseConnectionId": "conn_1"
, "enterpriseConnection": EnterpriseConnection
, "firstName": "Ada"
, "lastName": "Lovelace"
, "protocol": "saml"
, "provider": "saml_okta"
, "providerUserId": "okta_1"
, "publicMetadata": {}
, "verification": Verification
, "lastAuthenticatedAt": 1700000000000
}lastAuthenticatedAt arrives as epoch milliseconds and accepts null.
One enterprise SSO account.
publicMetadatais passed through untouched as a JSON value, which is always an object.