Skip to content

Commit

Permalink
Fix for create-challenge command
Browse files Browse the repository at this point in the history
  • Loading branch information
macterra committed Dec 16, 2024
1 parent e0da84e commit 55eba3e
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 64 deletions.
2 changes: 1 addition & 1 deletion packages/keymaster/src/keymaster-lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -1171,7 +1171,7 @@ export async function unpublishCredential(did) {

export async function createChallenge(challenge = {}, options = {}) {

if (typeof challenge !== 'object' || Array.isArray(challenge)) {
if (!challenge || typeof challenge !== 'object' || Array.isArray(challenge)) {
throw new InvalidParameterError('challenge');
}

Expand Down
Loading

0 comments on commit 55eba3e

Please sign in to comment.