jwtMiddleware is the authentication middleware used with gorilla
| 45 | // jwtMiddleware is the authentication middleware |
| 46 | // used with gorilla |
| 47 | type jwtMiddleware struct { |
| 48 | store dbCommon.Store |
| 49 | cfg config.JWTAuth |
| 50 | } |
| 51 | |
| 52 | // NewjwtMiddleware returns a populated jwtMiddleware |
| 53 | func NewjwtMiddleware(store dbCommon.Store, cfg config.JWTAuth) (Middleware, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected