diff --git a/pkg/op/server.go b/pkg/op/server.go index 47398ec..a9cdcf5 100644 --- a/pkg/op/server.go +++ b/pkg/op/server.go @@ -180,7 +180,7 @@ func newRequest[T any](r *http.Request, data *T) *Request[T] { } // ClientRequest is a Request with a verified client attached to it. -// Methods the receive this argument may assume the client was authenticated, +// Methods that receive this argument may assume the client was authenticated, // or verified to be a public client. // // EXPERIMENTAL: may change until v4 @@ -210,7 +210,7 @@ type Response struct { // can extend the standard types as they wish. // However, each method will recommend which // (base) type to use as model, in order to - // be complaint with the standards. + // be compliant with the standards. Data any } diff --git a/pkg/op/server_http.go b/pkg/op/server_http.go index 88b18cc..8956436 100644 --- a/pkg/op/server_http.go +++ b/pkg/op/server_http.go @@ -41,7 +41,7 @@ func RegisterServer(server Server, options ...ServerOption) http.Handler { type ServerOption func(s *webServer) -// WithHTTPMiddler sets the passed middleware chain to the root of +// WithHTTPMiddleware sets the passed middleware chain to the root of // the Server's router. func WithHTTPMiddleware(m ...func(http.Handler) http.Handler) ServerOption { return func(s *webServer) { diff --git a/pkg/op/server_http_test.go b/pkg/op/server_http_test.go index bbacf28..5ee14e3 100644 --- a/pkg/op/server_http_test.go +++ b/pkg/op/server_http_test.go @@ -745,7 +745,7 @@ func Test_webServer_codeExchangeHandler(t *testing.T) { }, }, { - name: "unimplemented JWTProfile called", + name: "unimplemented CodeExchange called", decoder: testDecoder, r: httptest.NewRequest(http.MethodPost, "/", strings.NewReader("code=123&redirect_uri=https://example.com/callback")), want: webServerResult{