Skip to content

Commit

Permalink
Drop the from validBefore and validAfter error messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
aljones15 committed Dec 4, 2023
1 parent 80b58a9 commit 7c6a7de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ export function _checkCredential({
validUntil = new Date(credential.validUntil);
if(now > validUntil) {
throw new Error(
`The current date time (${now.toISOString()}) is after the ` +
`The current date time (${now.toISOString()}) is after ` +
`"validUntil" (${validUntil.toISOString()}).`);
}
}
Expand All @@ -643,7 +643,7 @@ export function _checkCredential({
validFrom = new Date(credential.validFrom);
if(now < validFrom) {
throw new Error(
`The current date time (${now.toISOString()}) is before the ` +
`The current date time (${now.toISOString()}) is before ` +
`"validFrom" (${validFrom.toISOString()}).`);
}
}
Expand Down

0 comments on commit 7c6a7de

Please sign in to comment.