Replies: 1 comment
-
For this I would recommend writing your own version of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using axum-login for both, HTML endpoints and API endpoints. While
307 Temporary Redirect
into/login?next=%2Fapi%2Fuser
makes sense for HTML endpoints, for JSON API endpoints it'd be better to return401 UNAUTHORIZED
response with details in body.What's the best way to do this atm?
Beta Was this translation helpful? Give feedback.
All reactions