How to throw a custom Error in Access Control Options #8929
Unanswered
ogheneovo12
asked this question in
Questions
Replies: 1 comment
-
Did you make progress on this? I was just playing in this area today, didn't get a custom error showing unfortunately. |
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 have a
isSignedIn
access control methods, basically helps to check if a session actually exists for any operations, normally all Access Control Will return the KS_ACCESS_DENIED error, which in my case is quite generic, so i need a way to create a custom Error code i.e KS_UNAUTHORIZED, so this way on my seperate client, i can always log the user out, if and only no session exist (not when there's an actuall RBAC based error).throwing a normal error just uses the KS_EXTENSION_ERROR field.
isSignedInMethod
Usage
Error Response
Beta Was this translation helpful? Give feedback.
All reactions