Skip to content

Commit

Permalink
Added deprecation to Parser struct fields
Browse files Browse the repository at this point in the history
  • Loading branch information
oxisto committed Oct 13, 2021
1 parent b722d4e commit 600ac32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parser.go
Expand Up @@ -10,17 +10,17 @@ import (
type Parser struct {
// If populated, only these methods will be considered valid.
//
// In future releases, this field will not be exported anymore and should be set with an option to NewParser instead.
// Deprecated: In future releases, this field will not be exported anymore and should be set with an option to NewParser instead.
ValidMethods []string

// Use JSON Number format in JSON decoder.
//
// In future releases, this field will not be exported anymore and should be set with an option to NewParser instead.
// Deprecated: In future releases, this field will not be exported anymore and should be set with an option to NewParser instead.
UseJSONNumber bool

// Skip claims validation during token parsing.
//
// In future releases, this field will not be exported anymore and should be set with an option to NewParser instead.
// Deprecated: In future releases, this field will not be exported anymore and should be set with an option to NewParser instead.
SkipClaimsValidation bool
}

Expand Down

0 comments on commit 600ac32

Please sign in to comment.