🎨 Format JWT middleware linter comments

This commit is contained in:
Maxim Lebedev 2023-01-11 20:47:17 +06:00
parent d815e79c55
commit 37d55b88bc
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 4 additions and 2 deletions

View File

@ -148,7 +148,8 @@ type (
)
// DefaultJWTConfig is the default JWT auth middleware config.
//nolint: gochecknoglobals
//
//nolint:gochecknoglobals
var DefaultJWTConfig = JWTConfig{
Skipper: DefaultSkipper,
SigningMethod: "HS256",
@ -177,7 +178,8 @@ func JWT(key any) Interceptor {
}
// JWTWithConfig returns a JWT auth middleware with config.
//nolint: funlen, gocognit
//
//nolint:funlen,gocognit
func JWTWithConfig(config JWTConfig) Interceptor {
// Defaults
if config.Skipper == nil {