Skip to content

Commit 5ef8fb1

Browse files
committed
tweaks
1 parent fd3cbdb commit 5ef8fb1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jwt/jwt.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ type parseCtx struct {
188188
validateOpts []ValidateOption
189189
verifyOpts []jws.VerifyOption
190190
localReg *json.Registry
191-
pedantic *bool // Changed from bool to *bool
191+
pedantic *bool
192192
skipVerification bool
193193
validate bool
194194
withKeyCount int
@@ -246,7 +246,7 @@ func parseBytes(data []byte, options ...ParseOption) (Token, error) {
246246
if err := o.Value(&pedanticVal); err != nil {
247247
return nil, fmt.Errorf("jws.parseBytes: value for WithPedantic option must be a bool: %w", err)
248248
}
249-
ctx.pedantic = &pedanticVal // Store as pointer to indicate "explicitly set"
249+
ctx.pedantic = &pedanticVal // Store as pointer to indicate "explicitly set"
250250
case identValidate{}:
251251
if err := o.Value(&ctx.validate); err != nil {
252252
return nil, fmt.Errorf("jws.parseBytes: value for WithValidate option must be a bool: %w", err)
@@ -430,7 +430,7 @@ OUTER:
430430
if dc == nil {
431431
dc = json.NewDecodeCtx()
432432
}
433-
dc.SetPedantic(pedantic) // Pass the *bool directly
433+
dc.SetPedantic(pedantic)
434434
}
435435

436436
if dc != nil {

0 commit comments

Comments
 (0)