I’m trying to do a redirect as a response from a protected route and to a protected route.
I am using Sanic-JWT with a blueprint group like so:
I add this blueprint group to my app right before I initialize sanic-jwt
I am then trying to use
url_for to do a redirect as a response for a create_tournament request for example:
This is my get_tournaments route:
However this redirect keeps on returning a 401 with “Authorization header not present.” on our react-native application. This redirect is calling the blueprint defined within the same file, I am also trying this from other blueprint files to redirect to a blueprint and a handler within a different file.
My question is how do I redirect with authentication?