Using local_cache to forward a Guard's error to a catcher #2459
Unanswered
AaronCarton
asked this question in
Questions
Replies: 1 comment
-
I discovered that some people use |
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
-
I currently have an Auth guard that checkes whether a valid bearer token is included
Upon failure it'll return 403 forbidden, along with some JSON explaining what went wrong.
Now while the console displays this error
But the response still gives the default 403 error
I'm not sure how to make the response reflect the AuthGuard's error description. I know that there's error catchers but those seem too general for my case since they seemingly can't access the AuthGuard's result either?
Beta Was this translation helpful? Give feedback.
All reactions