Fix typo in comments
Brian Kassouf authored 7 years ago
Brian Kassouf committed 7 years ago
20 | 20 | ) |
21 | 21 | |
22 | 22 | // Create a new JWT token generating middleware, specifying signing method and the claims |
23 | // you would like it to contain. Particulary useful for clients. | |
23 | // you would like it to contain. Particularly useful for clients. | |
24 | 24 | func NewSigner(key string, method jwt.SigningMethod, claims jwt.Claims) endpoint.Middleware { |
25 | 25 | return func(next endpoint.Endpoint) endpoint.Endpoint { |
26 | 26 | return func(ctx context.Context, request interface{}) (response interface{}, err error) { |
41 | 41 | |
42 | 42 | // Create a new JWT token parsing middleware, specifying a jwt.Keyfunc interface and the |
43 | 43 | // signing method. Adds the resulting claims to endpoint context or returns error on invalid |
44 | // token. Particualry useful for servers. | |
44 | // token. Particularly useful for servers. | |
45 | 45 | func NewParser(keyFunc jwt.Keyfunc, method jwt.SigningMethod) endpoint.Middleware { |
46 | 46 | return func(next endpoint.Endpoint) endpoint.Endpoint { |
47 | 47 | return func(ctx context.Context, request interface{}) (response interface{}, err error) { |