fix(auth_token): check params before getting its property

This commit is contained in:
emrah
2024-10-17 12:18:28 +03:00
committed by Дамян Минков
parent ae00247632
commit 9fd6a6c822

View File

@@ -48,7 +48,7 @@ function init_session(event)
-- After validating auth_token will be cleaned in case of error and few
-- other fields will be extracted from the token and set in the session
if query and params.token then
if params and params.token then
token = params.token;
end
end