BearerExtractor extracts a token from the Authorization header. The header is expected to match the format "Bearer XX", where "XX" is the JWT token.
| 85 | // The header is expected to match the format "Bearer XX", where "XX" is the |
| 86 | // JWT token. |
| 87 | type BearerExtractor struct{} |
| 88 | |
| 89 | func (e BearerExtractor) ExtractToken(req *http.Request) (string, error) { |
| 90 | tokenHeader := req.Header.Get("Authorization") |
nothing calls this directly
no outgoing calls
no test coverage detected