Commit 1b8616a
committed
refactor(auth): improve exception handling in initiateEmailSignIn
Refactors the try-catch block in the `initiateEmailSignIn` method to improve robustness and clarity.
- The generic `catch` block now includes the stack trace in the log for better error diagnostics.
- Adds a comment to the `on HtHttpException` block to clarify that it correctly propagates specific exceptions like `ForbiddenException`, preventing them from being masked as generic 501 parent deb906e commit 1b8616a
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
109 | 111 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
115 | 117 | | |
| |||
0 commit comments