Hi! I am new to Spring Security and currently configuring it to use jwt token for Authentication/Authorization via youtube tutorial. I have implemented Jwt related service and it all going well.
I have try catch in JwtAuthFilter class to catch exception from token.
I have CustomAuthenticationEntryPoint class which implements AuthenticationEntryPoint and I have registered it in SecurityConfig class.
Everytime Jwt Exception occurs JwtAuthFilter catch exception but CustomAuthenticationEntryPoint doesn't catch it so it throws a long exception.
I want to catch jwt exception not only spring exception.
Can you please tell me what I am missing?