Skip to content

Commit

Permalink
chore: remove jwt deprecated (zeromicro#1452)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan authored Jan 16, 2022
1 parent 13db7a1 commit 272a3f3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rest/token/tokenparser.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,5 @@ func WithResetDuration(duration time.Duration) ParseOption {
}

func newParser() *jwt.Parser {
return &jwt.Parser{
UseJSONNumber: true,
}
return jwt.NewParser(jwt.WithJSONNumber())
}

0 comments on commit 272a3f3

Please sign in to comment.