Relative Content

Tag Archive for rustbackendrust-axumaxum-lang

Cannot use State and Extension Extractor in handler function in Axum

I have a handler function where, it’s has two parameters, First params is for State where I stored SurrealDb DataBase Client, and in other field I used Extension where I can extract the jwt claim’s id after Jwt verification. This verification happens in the middleware.
My handler function: