aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_tokenauth.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_tokenauth.lua b/plugins/mod_tokenauth.lua
index 8b24bc17..1eb5c66b 100644
--- a/plugins/mod_tokenauth.lua
+++ b/plugins/mod_tokenauth.lua
@@ -49,6 +49,7 @@ function create_jid_token(actor_jid, token_jid, token_role, token_ttl, token_dat
end
local function parse_token(encoded_token)
+ if not encoded_token then return nil; end
local token = base64.decode(encoded_token);
if not token then return nil; end
local token_jid, token_id = token:match("^1;([^;]+);(.+)$");