Skip to content

How would I throw custom errors in a strategy? #123

Answered by unlinking
kyh asked this question in Q&A
Discussion options

You must be logged in to vote

For now, my workaround is throw new AuthorizationError(JSON.stringify(some error object)).
Preferably, remix-auth could extend AuthorizationError to store complex error object.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kyh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants