From 0ec88ed5d229ec7418d75e33081894a9644a72db Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Tue, 24 May 2022 15:34:25 +0200 Subject: [PATCH] Fix typo Co-authored-by: David Christofas --- extensions/graph/pkg/middleware/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/graph/pkg/middleware/auth.go b/extensions/graph/pkg/middleware/auth.go index 037aa0bc7..8d64b70f2 100644 --- a/extensions/graph/pkg/middleware/auth.go +++ b/extensions/graph/pkg/middleware/auth.go @@ -27,7 +27,7 @@ func authOptions(opts ...account.Option) account.Options { // Auth provides a middleware to authenticate requests using the x-access-token header value // and write it to the context. If there is no x-access-token the middleware prevents access and renders a json document. func Auth(opts ...account.Option) func(http.Handler) http.Handler { - // Note: This largely duplicates was ocis-pkg/middleware/account.go already does (apart from a slightly different error + // Note: This largely duplicates what ocis-pkg/middleware/account.go already does (apart from a slightly different error // handling). Ideally we should merge both middlewares. opt := authOptions(opts...) tokenManager, err := jwt.New(map[string]interface{}{