# HG changeset patch # User Matthew Wild # Date 1677696234 0 # Node ID e4de42495fb79411f52955eaf353fff8303a566d # Parent 5a06d07596f98b4e4d512cb2342a6d896179e8b0 mod_tokenauth: Gracefully handle missing tokens diff -r 5a06d07596f9 -r e4de42495fb7 plugins/mod_tokenauth.lua --- a/plugins/mod_tokenauth.lua Wed Mar 01 13:05:17 2023 +0000 +++ b/plugins/mod_tokenauth.lua Wed Mar 01 18:43:54 2023 +0000 @@ -49,6 +49,7 @@ 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;([^;]+);(.+)$");