Skip to content

Commit

Permalink
Merge pull request #85 from TimoGlastra/feat/jsonld-issuance
Browse files Browse the repository at this point in the history
feat: ldp issuance
  • Loading branch information
nklomp authored Jan 16, 2024
2 parents 7577e3d + bf8865a commit cc67892
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/issuer/lib/VcIssuer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,10 @@ export class VcIssuer<DIDDoc extends object> {
}) {
let preAuthorizedCode: string | undefined
let issuerState: string | undefined

const supportedIssuanceFormats = ['jwt_vc_json', 'jwt_vc_json-ld', 'vc+sd-jwt', 'ldp_vc']
try {
if (credentialRequest.format !== 'jwt_vc_json' && credentialRequest.format !== 'jwt_vc_json-ld' && credentialRequest.format !== 'vc+sd-jwt') {
if (!supportedIssuanceFormats.includes(credentialRequest.format)) {
throw Error(`Format ${credentialRequest.format} not supported yet`)
} else if (typeof this._jwtVerifyCallback !== 'function' && typeof jwtVerifyCallback !== 'function') {
throw new Error(JWT_VERIFY_CONFIG_ERROR)
Expand Down

0 comments on commit cc67892

Please sign in to comment.