How to throw api error in a custom strategy in payload v3? #10160
Replies: 1 comment
-
Throwing error works correctly as defined in routeError/formatErrors, it looks like my code probably has some error unrelated to payload. |
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
-
We're using payload cms for api for android app. We need to throw some error in custom strategy, in payload v2 when we threw api error from custom strategy it was shown in the response, but in payload 3 its giving error 500.
In payload v2 this used to throw 401 error code. In payload v2 it throws 500 error code without our custom error payload.
Beta Was this translation helpful? Give feedback.
All reactions