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
The error is on purpose, as it demonstrates an unauthorized request to a protected endpoint. If you want to see response to an authorized request, you should use the example under the tab "With a valid JsonWebToken".
This behaviour is actually explained under that very section:
In the curl requests above, a 401 HTTP Error is raised when the token is not valid. By default, AuthX triggers a 500 Internal Server Error HTTP Error. For the sake of simplicity, we won't delve into error handling in this section.
Example of a valid request (access token will be different in your case):
(I just tried it in local just to be sure that it still works. response: {"message":"Hello World"} )
Edit: I wanted to add that maybe you are looking for handling these exceptions automatically, in which case you should use auth.handle_errors(app) and (optionally) try&except as you can see here.
I tried to run the example from https://authx.yezz.me/get-started/basic-usage/ and got an error:
The text was updated successfully, but these errors were encountered: