Skip to content

Commit 653ffa0

Browse files
committed
Add note to SigningMethod docs
SigningMethod is not checked when a user-defined KeyFunc is provided. This is explained in the KeyFunc documentation, but we managed to overlook this when configuring echo-jwt. This commit adds a note to the SigningMethod documentation to help prevent others from making the same mistake.
1 parent bcf3995 commit 653ffa0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jwt.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ type Config struct {
5757
SigningKeys map[string]interface{}
5858

5959
// Signing method used to check the token's signing algorithm.
60+
// SigningMethod is not checked when a user-defined KeyFunc is provided.
6061
// Optional. Default value HS256.
6162
SigningMethod string
6263

0 commit comments

Comments
 (0)