-
|
I just write a AsyncRequireAuthorizationLayer, I decode jwt token in it, then insert jwt claims to request.extensions_mut(). I try to get claims from socket.extensions, but failed. Please let me know if I missed anything. |
Beta Was this translation helpful? Give feedback.
Answered by
Totodore
Sep 15, 2025
Replies: 1 comment 2 replies
-
|
Use |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
Totodore
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use
HttpExtensionand notExtension. An extension is bound to the lifetime of the socket and it is not the same that the one you are inserting in your http request.