We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2688ba9 commit a5c5601Copy full SHA for a5c5601
src/index.js
@@ -1,5 +1,5 @@
1
const { GrantManager } = require('keycloak-auth-utils')
2
-const Token = require('keycloak-auth-utils/lib/token')
+const KeycloakToken = require('keycloak-auth-utils/lib/token')
3
const cache = require('./cache')
4
const token = require('./token')
5
const { error, fakeReply, verify } = require('./utils')
@@ -27,7 +27,8 @@ let store
27
* @returns {Promise} The error-handled promise
28
*/
29
function validateSignedJwt (tkn) {
30
- return manager.validateToken(new Token(tkn, options.clientId))
+ const kcTkn = new KeycloakToken(tkn, options.clientId)
31
+ return manager.validateToken(kcTkn)
32
}
33
34
/**
0 commit comments