Don't export the type of the context keys to avoid collisions
Brian Kassouf
7 years ago
8 | 8 | "github.com/go-kit/kit/endpoint" |
9 | 9 | ) |
10 | 10 | |
11 | type key string | |
12 | ||
11 | 13 | const ( |
12 | 14 | // JWTTokenContextKey holds the key used to store a JWT Token in the context |
13 | JWTTokenContextKey = "JWTToken" | |
15 | JWTTokenContextKey key = "JWTToken" | |
14 | 16 | // JWTClaimsContxtKey holds the key used to store the JWT Claims in the context |
15 | JWTClaimsContextKey = "JWTClaims" | |
17 | JWTClaimsContextKey key = "JWTClaims" | |
16 | 18 | ) |
17 | 19 | |
18 | 20 | var ( |