Skip to content

Commit

Permalink
chore: var name
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Jun 10, 2024
1 parent f7dd918 commit 7e7a86e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ func PublicPrefixesMiddleware(prefixes []string) func(http.Handler) http.Handler

// JWTMiddleware creates a new middleware function that will validate JWT
// tokens based on the supplied public key.
func JWTMiddleware(webkey jose.JSONWebKey, iss string, aud []string) (func(http.Handler) http.Handler, error) {
jm, err := jwtMiddlewareImpl(webkey, iss, aud)
func JWTMiddleware(pk jose.JSONWebKey, iss string, aud []string) (func(http.Handler) http.Handler, error) {
jm, err := jwtMiddlewareImpl(pk, iss, aud)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 7e7a86e

Please sign in to comment.