Skip to content

Commit 23584dd

Browse files
szabolcsdombivimalloc
authored andcommitted
fix current_roles contains a dict (#248)
1 parent ab0e314 commit 23584dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/tokens_from_complex_objects.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def login():
6262
def protected():
6363
ret = {
6464
'current_identity': get_jwt_identity(), # test
65-
'current_roles': get_jwt_claims() # ['foo', 'bar']
65+
'current_roles': get_jwt_claims()['roles'] # ['foo', 'bar']
6666
}
6767
return jsonify(ret), 200
6868

0 commit comments

Comments
 (0)