From fd56fac3536ea7a90105ae6762b1cbd4ef3822c7 Mon Sep 17 00:00:00 2001 From: Lakhan Samani Date: Mon, 7 Feb 2022 09:42:49 +0530 Subject: [PATCH] fix: add custom access token script to env sample --- .env.sample | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.sample b/.env.sample index c541e7b..c3ca441 100644 --- a/.env.sample +++ b/.env.sample @@ -1,2 +1,3 @@ DATABASE_URL=data.db -DATABASE_TYPE=sqlite \ No newline at end of file +DATABASE_TYPE=sqlite +CUSTOM_ACCESS_TOKEN_SCRIPT="function(user,tokenPayload){var data = tokenPayload;data.extra = {'x-extra-id': user.id};return data;}" \ No newline at end of file