[deps]: update jwt-go dependency (#12544)

jwt-go has been renamed to jwt and has a new home. See
https://github.com/dgrijalva/jwt-go/issues/462
This commit is contained in:
Emir İşman
2021-06-24 18:41:04 +03:00
committed by GitHub
parent ba6e9682e5
commit 9bf1ac0bb6
12 changed files with 20 additions and 18 deletions

View File

@@ -19,8 +19,8 @@ package jwt
// This file is a re-implementation of the original code here with some
// additional allocation tweaks reproduced using GODEBUG=allocfreetrace=1
// original file https://github.com/dgrijalva/jwt-go/blob/master/parser.go
// borrowed under MIT License https://github.com/dgrijalva/jwt-go/blob/master/LICENSE
// original file https://github.com/golang-jwt/jwt/blob/main/parser.go
// borrowed under MIT License https://github.com/golang-jwt/jwt/blob/main/LICENSE
import (
"crypto"
@@ -31,7 +31,7 @@ import (
"sync"
"time"
jwtgo "github.com/dgrijalva/jwt-go"
jwtgo "github.com/golang-jwt/jwt"
jsoniter "github.com/json-iterator/go"
)
@@ -117,7 +117,7 @@ func (c *StandardClaims) SetAccessKey(accessKey string) {
c.AccessKey = accessKey
}
// Valid - implements https://godoc.org/github.com/dgrijalva/jwt-go#Claims compatible
// Valid - implements https://godoc.org/github.com/golang-jwt/jwt#Claims compatible
// claims interface, additionally validates "accessKey" fields.
func (c *StandardClaims) Valid() error {
if err := c.StandardClaims.Valid(); err != nil {
@@ -162,7 +162,7 @@ func (c *MapClaims) SetAccessKey(accessKey string) {
c.MapClaims["accessKey"] = accessKey
}
// Valid - implements https://godoc.org/github.com/dgrijalva/jwt-go#Claims compatible
// Valid - implements https://godoc.org/github.com/golang-jwt/jwt#Claims compatible
// claims interface, additionally validates "accessKey" fields.
func (c *MapClaims) Valid() error {
if err := c.MapClaims.Valid(); err != nil {