JR-Abstract / reddit-clone-abstract

MIT License
1 stars 0 forks source link

Fix: Streamline Response Handling #149

Open aleos-dev opened 5 months ago

aleos-dev commented 5 months ago

This commit enhances the JwtAuthenticationFilter. It now throws a specific AuthenticationServiceException when encountering a blocked JWT token and includes detailed error handling for JwtExceptions. Also, the filter now ensures that an appropriate error message is sent back to the client upon authentication failure, improving the clarity of the client-facing error responses. Additionally, the logging within unsuccessfulAuthentication has been augmented for better traceability.