From 71e4e35de64441d06542a69090f6f5c418f30f98 Mon Sep 17 00:00:00 2001 From: Lakhan Samani Date: Sun, 31 Oct 2021 11:05:06 +0530 Subject: [PATCH] add sample for custom access token script --- .env.sample | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.sample b/.env.sample index b2dffd7..52a0d3d 100644 --- a/.env.sample +++ b/.env.sample @@ -8,4 +8,5 @@ JWT_TYPE=HS256 ROLES=user DEFAULT_ROLES=user PROTECTED_ROLES=admin -JWT_ROLE_CLAIM=role \ No newline at end of file +JWT_ROLE_CLAIM=role +function(user,tokenPayload){var data = tokenPayload;data.extra = {'x-extra-id': user.id};return data;} \ No newline at end of file