From f51560fb908572e906fa270ea6c4d0999d313cd5 Mon Sep 17 00:00:00 2001 From: Johannes Waigel Date: Tue, 29 Dec 2020 16:23:17 +0100 Subject: [PATCH] fix typo remove invalid code --- securing_apps/topics/oidc/nodejs-adapter.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/securing_apps/topics/oidc/nodejs-adapter.adoc b/securing_apps/topics/oidc/nodejs-adapter.adoc index 44df708ced..254eaf2be2 100644 --- a/securing_apps/topics/oidc/nodejs-adapter.adoc +++ b/securing_apps/topics/oidc/nodejs-adapter.adoc @@ -196,7 +196,7 @@ If `response_mode` is set to `token`, permissions are obtained from the server o [source,javascript] ---- app.get('/apis/me', keycloak.enforcer('user:profile', {response_mode: 'token'}), function (req, res) { - var token = var token = req.kauth.grant.access_token.content; + var token = req.kauth.grant.access_token.content; var permissions = token.authorization ? token.authorization.permissions : undefined; // show user profile