API handler unable to access middleware’s context value in Golang
I am trying to append value of my ID
to context in my auth
middleware, which verifies user and pass it to my API handler.
I want to verify JWT in middleware and pass the id to handler for further use.
I am trying to access the context with value in handler but not able to access it but at a same when I access the same context with value (attached to request) in the middleware itself ,I am getting the value.
Attaching code and logs