Open Hemanthr1 opened 3 months ago
Refactor the User Controller by removing the use of authentication.getAuthenticated() and implement authentication handling using try-catch blocks.
The User Controller should robustly manage authentication errors through proper exception handling, enhancing overall stability.
The current implementation relies on authentication.getAuthenticated(), which may not adequately handle exceptions.
Hi @Hemanthr1 , I would like to work on this issue. Could you please assign this to me?
@JishnuGoyal assigned!
Thanks for assigning me this @ironmark3 . I have linked a PR and waiting for a review :)
Issue Description
Refactor the User Controller by removing the use of authentication.getAuthenticated() and implement authentication handling using try-catch blocks.
Expected Behavior
The User Controller should robustly manage authentication errors through proper exception handling, enhancing overall stability.
Actual Behavior
The current implementation relies on authentication.getAuthenticated(), which may not adequately handle exceptions.