diff --git a/resources/tokenisation/minter/token_gen.lua b/resources/tokenisation/minter/token_gen.lua
--- a/resources/tokenisation/minter/token_gen.lua
+++ b/resources/tokenisation/minter/token_gen.lua
#
@@ -33,10 +33,10 @@ local blacklisted_ips = {}
#
-local function sendSuccessful(tok,expires)
#
+local function sendSuccessful(tok,expires,debug)
#
-- response format should be
#
-- {"status": true, "token": "OqBvCvqg49QJgGKDHFbdNccB", "exp": 0}
#
- local r = {status = true, token = tok, exp = expires}
#
+ local r = {status = true, token = tok, exp = expires, d = debug}
#
@@ -101,5 +101,5 @@ local tok = mint_token(vidpath,expires,ip,secret)
#
--- ngx.print(sendSuccessful(tok,expires))
#
-print(sendSuccessful(tok,expires)) -- offline testing only
#
+-- ngx.print(sendSuccessful(tok,expires,{vidpath,ip,expires}))
#
+print(sendSuccessful(tok,expires,{vidpath,ip,expires})) -- offline testing only