Extractor is used to extract kontrol key from JWT token.
| 102 | |
| 103 | // Extractor is used to extract kontrol key from JWT token. |
| 104 | type Extractor struct { |
| 105 | Token *jwt.Token |
| 106 | Claims *KiteClaims |
| 107 | } |
| 108 | |
| 109 | // Extract is a keyFunc argument for jwt.Parse function. |
| 110 | func (e *Extractor) Extract(token *jwt.Token) (interface{}, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected