You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
I'm using version 3.4 and I'm running some checks based on the decoded token in the "before" callback just after the token has been validated.
The problem is that if one of the check fails, I can't return a 401 from the callback as I can't access the response object.
I've seen it was possible in the previous version.
Is there any way I can call the error callback from "before", halt the execution or do I need to do my checks in another middleware called after the token is validated ?
The text was updated successfully, but these errors were encountered:
I'm using version 3.4 and I'm running some checks based on the decoded token in the "before" callback just after the token has been validated.
The problem is that if one of the check fails, I can't return a 401 from the callback as I can't access the response object.
I've seen it was possible in the previous version.
Is there any way I can call the error callback from "before", halt the execution or do I need to do my checks in another middleware called after the token is validated ?
The text was updated successfully, but these errors were encountered: