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:
parent
808def7d32
commit
aaf391b284
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user