If you send e.g. "Bearer ggg" as token JWTDecodeException is thrown and propagated all through the system (it's a RuntimeException). Catching it and throwing an InvalidTokenException is better IMHO.
Coverage decreased (-0.4%) to 86.902% when pulling bfb14d547734e5e31891cc737fd3b0cdaae26386 on wtobi:master into ff24bd0f4256647d555bfb423309da72f4e47dbe on Mercateo:master.
If you send e.g. "Bearer ggg" as token JWTDecodeException is thrown and propagated all through the system (it's a RuntimeException). Catching it and throwing an InvalidTokenException is better IMHO.