Skip to content

Commit a5c5601

Browse files
committed
rename Token to KeycloakToken
1 parent 2688ba9 commit a5c5601

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { GrantManager } = require('keycloak-auth-utils')
2-
const Token = require('keycloak-auth-utils/lib/token')
2+
const KeycloakToken = require('keycloak-auth-utils/lib/token')
33
const cache = require('./cache')
44
const token = require('./token')
55
const { error, fakeReply, verify } = require('./utils')
@@ -27,7 +27,8 @@ let store
2727
* @returns {Promise} The error-handled promise
2828
*/
2929
function validateSignedJwt (tkn) {
30-
return manager.validateToken(new Token(tkn, options.clientId))
30+
const kcTkn = new KeycloakToken(tkn, options.clientId)
31+
return manager.validateToken(kcTkn)
3132
}
3233

3334
/**

0 commit comments

Comments
 (0)