resolve typo comments
This commit is contained in:
parent
c6f6a8800d
commit
f6cb47fbbb
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue