From 26a6aabce67f59b1e77825481f328f268493b136 Mon Sep 17 00:00:00 2001 From: Martin Helmich Date: Tue, 1 Dec 2015 16:14:25 +0100 Subject: [PATCH] Update comments in test cases --- jsonwebtoken/jsonwebtoken-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsonwebtoken/jsonwebtoken-tests.ts b/jsonwebtoken/jsonwebtoken-tests.ts index c4e42f054..6aadaa82c 100644 --- a/jsonwebtoken/jsonwebtoken-tests.ts +++ b/jsonwebtoken/jsonwebtoken-tests.ts @@ -60,13 +60,13 @@ jwt.verify(token, cert, { audience: 'urn:foo', issuer: 'urn:issuer' }, function( // verify algorithm cert = fs.readFileSync('public.pem'); // get public key jwt.verify(token, cert, { algorithms: ['RS256'] }, function(err, decoded) { - // if issuer mismatch, err == invalid issuer + // if algorithm mismatch, err == invalid algorithm }); // verify without expiration check cert = fs.readFileSync('public.pem'); // get public key jwt.verify(token, cert, { ignoreExpiration: true }, function(err, decoded) { - // if issuer mismatch, err == invalid issuer + // if ignoreExpration == false and token is expired, err == expired token }); /**