Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Calling response object from "before" callback #189

@geshub

Description

@geshub

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions