-
SummaryI'm working on a handler for Google's OAuth and the idea is to validade the JWT token extracted from a PrivateCookieJar, refresh the token if its expired, and return a struct Claims with all the relevant fields. I initally attempted the method shown in this example using FromRequestParts: This works great, I can even use I'm able to do everything including update the browser with the updated cookie jar axum version0.7.5 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Got it working by returning |
Beta Was this translation helpful? Give feedback.
Got it working by returning
Option<Claims>
in another custom middleware alongside the one I've already implemented returning justClaims
. I'm not sure if this is the best way to do it but it works for now.