From 9b3d086d689b8ed840c8af791d9a642203e319fe Mon Sep 17 00:00:00 2001 From: Vitalii Bulyzhyn Date: Wed, 28 Feb 2024 17:17:39 -0500 Subject: [PATCH] Fix readme inconsistency --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e65eb0db..76a15a91 100644 --- a/README.md +++ b/README.md @@ -155,7 +155,7 @@ If you need to obtain the key dynamically from other sources, you can pass a fun For example, if the secret varies based on the [issuer](http://self-issued.info/docs/draft-ietf-oauth-json-web-token.html#issDef): ```javascript -var jwt = require("express-jwt"); +var { expressjwt: jwt } = require("express-jwt"); var data = require("./data"); var utilities = require("./utilities"); @@ -201,7 +201,7 @@ It is possible that some tokens will need to be revoked so they cannot be used a For example, if the `(iss, jti)` claim pair is used to identify a JWT: ```javascript -const jwt = require("express-jwt"); +const { expressjwt: jwt } = require("express-jwt"); const data = require("./data"); const isRevokedCallback = async (req, token) => {