TokenExtractor is a function that takes a request as input and returns either a token or an error. An error should only be returned if an attempt to specify a token was found, but the information was somehow incorrectly formed. In the case where a token is simply not present, this should not be tr
func(r *http.Request) (string, error)
| 44 | // formed. In the case where a token is simply not present, this should not |
| 45 | // be treated as an error. An empty string should be returned in that case. |
| 46 | type TokenExtractor func(r *http.Request) (string, error) |
| 47 | |
| 48 | // Options is a struct for specifying configuration options for the middleware. |
| 49 | type Options struct { |
nothing calls this directly
no outgoing calls
no test coverage detected