I am trying to change the format that my API will return the messages from /auth and /auth/verify routes, creating a pattern for my application. When I POST in route /auth, always return:
I've already changed the exception_response, and it is working well. But when I tried to use get_access_token_output or extend_authenticate, the message did not show correctly.
The same thing happens if I want to change the verify returning message.
How can I change these patterners to attend to mine?
Hello Sanic Developers,
I am trying to change the format that my API will return the messages from /auth and /auth/verify routes, creating a pattern for my application. When I POST in route /auth, always return:
But I want to encapsulate this, for example:
I've already changed the exception_response, and it is working well. But when I tried to use get_access_token_output or extend_authenticate, the message did not show correctly.
The same thing happens if I want to change the verify returning message.
How can I change these patterners to attend to mine?