Skip to content

Setting response body when authentication fails #48

@Youdaman

Description

@Youdaman

Hi Mika, thanks for the great middleware :)

In the code example for the above section in the readme, to return a proper JSON response (and not a HTML/text response) you should use:

return $response->withJson($data);

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions