25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +01:00

Catch all errors from jose_jwt:verify and log debugging details (#3890)

This commit is contained in:
Badlop 2022-09-01 13:00:56 +02:00
parent 808def7d32
commit aaf391b284

View File

@ -146,6 +146,9 @@ check_jwt_token(User, Server, Token) ->
{false, _, _} ->
false
catch
error:{badarg, _} ->
A:B ->
?DEBUG("jose_jwt:verify failed ~n for account ~p@~p~n "
" JWK and token: ~p~n with error: ~p",
[User, Server, {JWK, Token}, {A, B}]),
false
end.