Bouncer AuthorizationException import #3224
-
Hello there I am trying to do something like this: if (error instanceof AuthorizationException) {
return response.unauthorized({
message: 'You are not allowed to view this page',
})
} But I cannot import the |
Beta Was this translation helpful? Give feedback.
Answered by
thetutlage
Oct 7, 2021
Replies: 1 comment 1 reply
-
If you can use the exception code. if(error.code === 'E_AUTHORIZATION_FAILURE') {
// logic
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
melokki
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you can use the exception code.