Skip to content

Commit 71e4e35

Browse files
committed
add sample for custom access token script
1 parent 3aeb3b8 commit 71e4e35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.env.sample

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ JWT_TYPE=HS256
88
ROLES=user
99
DEFAULT_ROLES=user
1010
PROTECTED_ROLES=admin
11-
JWT_ROLE_CLAIM=role
11+
JWT_ROLE_CLAIM=role
12+
function(user,tokenPayload){var data = tokenPayload;data.extra = {'x-extra-id': user.id};return data;}

0 commit comments

Comments
 (0)