remove invalid code
This commit is contained in:
Johannes Waigel 2020-12-29 16:23:17 +01:00 committed by Hynek Mlnařík
parent a8bc362734
commit f51560fb90

View file

@ -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