Skip to content

Commit

Permalink
patched contract
Browse files Browse the repository at this point in the history
  • Loading branch information
awitas committed Mar 24, 2023
1 parent 35e5496 commit 276768b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/secret/contract.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (r *SignJWTRequest) Validate() error {
if r.Claims == nil && len(r.ClaimsMap) == 0 {
return fmt.Errorf("claims was empty")
}
if r.PrivateKey == nil || r.HMAC == nil {
if r.PrivateKey == nil && r.HMAC == nil {
return fmt.Errorf("PrivateKey/HMAC „as empty")
}
return nil
Expand Down

0 comments on commit 276768b

Please sign in to comment.