Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Unfortunately it seems like you have to write a custom Axum middleware to retrieve the current user and then do the redirect manually. Not many lines of code but still…

And then again manually fetch the next query parameter after login.

This is such a common pattern, I’m astonished that it’s not provided out of the box.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: