withToken adds the JWT token to the context.
(ctx context.Context, token *jwt.Token)
| 39 | |
| 40 | // withToken adds the JWT token to the context. |
| 41 | func withToken(ctx context.Context, token *jwt.Token) context.Context { |
| 42 | return context.WithValue(ctx, tokenKey, token) |
| 43 | } |
| 44 | |
| 45 | // getToken reads the JWT token from the context. |
| 46 | func getToken(ctx context.Context) *jwt.Token { |
no outgoing calls
no test coverage detected
searching dependent graphs…