Is swallowing errors from the verify function intentional? #49
Unanswered
E-Kuerschner
asked this question in
Q&A
Replies: 1 comment
-
Could be related to this: #36 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey all! I'm not sure if this is a feature or a bug. Feel free to clarify and close if this is the intended behavior. My use case is I want to throw an error when a request is made for an email that is not registered in the database.
Expected behavior:
Throwing an error in the verify function should be caught/thrown when initiating the strategy.
Actual behavior:
The error is swallowed
Proposed solution:
I think we could add a try/catch on the line below to forward errors thrown during verification.
https://github.com/pbteja1998/remix-auth-email-link/blob/main/src/index.ts#L331
Beta Was this translation helpful? Give feedback.
All reactions