diff --git a/lib/rp.ts b/lib/rp.ts index f0c26bc2..bb2c437a 100644 --- a/lib/rp.ts +++ b/lib/rp.ts @@ -120,7 +120,10 @@ export const rp = RP.builder({ requestVersion: SupportedVersion.SIOPv2_ID1 }) idTokenSigningAlgValuesSupported: [SigningAlgo.EDDSA, SigningAlgo.ES256], requestObjectSigningAlgValuesSupported: [SigningAlgo.EDDSA, SigningAlgo.ES256], responseTypesSupported: [ResponseType.ID_TOKEN], - vpFormatsSupported: { jwt_vc: { alg: [SigningAlgo.EDDSA, SigningAlgo.RS256, SigningAlgo.ES256] } }, + vpFormatsSupported: { + jwt_vc_json: { alg: [SigningAlgo.EDDSA, SigningAlgo.RS256, SigningAlgo.ES256] }, + jwt_vp_json: { alg: [SigningAlgo.EDDSA, SigningAlgo.RS256, SigningAlgo.ES256] } + }, scopesSupported: [Scope.OPENID_DIDAUTHN, Scope.OPENID], subjectTypesSupported: [SubjectType.PAIRWISE], subject_syntax_types_supported: ['did', 'did:ethr', 'did:key', 'did:jwk', 'did:web', 'did:ion'], diff --git a/pages/api/vp/share.ts b/pages/api/vp/share.ts index 53a1e8b8..f8971610 100644 --- a/pages/api/vp/share.ts +++ b/pages/api/vp/share.ts @@ -48,13 +48,13 @@ async function handler(req: NextApiRequest, res: NextApiResponse) { "id": "1", "name": doc.vc_type + " Verifiable Credential", "purpose": "We want a VC of this type to proof provider claim", - // "schema": [ - // { - // "uri": "VerifiableCredential" - // } - // ], + "schema": [ + { + "uri": "VerifiableCredential" + } + ], "format": { - "jwt_vc": { + "jwt_vc_json": { "alg": [ "EdDSA" ]