fix typo
remove invalid code
This commit is contained in:
parent
a8bc362734
commit
f51560fb90
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue