aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/mod_tokenauth.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_tokenauth.lua b/plugins/mod_tokenauth.lua
index 8e516924..b023d9f8 100644
--- a/plugins/mod_tokenauth.lua
+++ b/plugins/mod_tokenauth.lua
@@ -30,7 +30,7 @@ function create_jid_token(actor_jid, token_jid, token_scope, token_ttl)
};
local token_id = id.long();
- local token = base64.encode("1;"..token_username.."@"..token_host..";"..token_id);
+ local token = base64.encode("1;"..jid.join(token_username, token_host)..";"..token_id);
token_store:set(token_username, token_id, token_info);
return token, token_info;