Skip to content

Commit

Permalink
auth/jwt: MapClaims: add doc comment for ClaimsFactory type
Browse files Browse the repository at this point in the history
  • Loading branch information
litriv committed Jul 13, 2017
1 parent 44bb404 commit 37eab0a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auth/jwt/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ func NewSigner(kid string, key []byte, method jwt.SigningMethod, claims jwt.Clai
}
}

// ClaimsFactory is a factory for jwt.Claims.
// Useful in NewParser middleware.
type ClaimsFactory func() jwt.Claims

// MapClaimsFactory is a ClaimsFactory that returns
Expand Down

0 comments on commit 37eab0a

Please sign in to comment.