Software /
code /
prosody
Diff
plugins/mod_tokenauth.lua @ 12917:e4de42495fb7
mod_tokenauth: Gracefully handle missing tokens
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 01 Mar 2023 18:43:54 +0000 |
parent | 12915:70f6a8dceb1d |
child | 12919:7c0e5c7eff7c |
line wrap: on
line diff
--- 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;([^;]+);(.+)$");