Upgrade from 0.7.9 to 0.8.1 breaks my auth middleware: the trait FromRequestParts<()>
is not implemented for Cookies
#3144
-
SummaryI use a router layer with a middleware-from-function like this: And this verify_login function looks like this: The error messages claim that Cookies is not a valid Axum extractor anymore.
What must I do? axum version0.8.1 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
where Cookies coming from? is this from a third-party crate? That crate might not be updated to axum 0.8 yet. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I should have said this, it's
|
Beta Was this translation helpful? Give feedback.
It seems like
tower-cookies
has been updated to useaxum-core 0.5
three days ago. Are you using v0.11 oftower-cookies
?