W3 and IETF are working on standards for this, SD-JWT[1] with oidc4vc[2] looks like the most promising Verifiable Credential[3] technology to me.
[1] https://www.ietf.org/archive/id/draft-ietf-oauth-selective-d... [2] https://openid.net/specs/openid-4-verifiable-credential-issu... [3] https://www.w3.org/TR/vc-data-model-2.0/#what-is-a-verifiabl...