File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,7 @@ export function parsePayload(payload: string | Payload | Uint8Array, {
289289 throw new PasetoClaimInvalid ( "Payload must have a valid \"nbf\" claim (is not an date or a valid relative time string (e.g. \"1 hour\"))" ) ;
290290 }
291291 // The "nbf" claim must be greater than the "iat" claim
292- if ( obj . hasOwnProperty ( "iat" ) && nbf <= Date . parse ( ( obj as any ) . iat ) ) {
292+ if ( obj . hasOwnProperty ( "iat" ) && nbf < Date . parse ( ( obj as any ) . iat ) ) {
293293 throw new PasetoClaimInvalid ( "Payload must have a valid \"nbf\" claim (is not greater than \"iat\")" ) ;
294294 }
295295 // The "nbf" claim must not be in the future
@@ -385,4 +385,4 @@ export function deriveEncryptionAndAuthKeys(key: Uint8Array, nonce: Uint8Array)
385385 counterNonce,
386386 authKey,
387387 }
388- }
388+ }
You can’t perform that action at this time.
0 commit comments