feat(app): update
This commit is contained in:
@ -71,7 +71,7 @@ func VerifyToken(tokenStr, publicKey string) (access bool, claims Claims, e erro
|
||||
return
|
||||
}
|
||||
var token *jwt.Token
|
||||
if token, e = jwt.ParseWithClaims(tokenStr, &claims, func(token *jwt.Token) (interface{}, error) {
|
||||
if token, e = jwt.ParseWithClaims(tokenStr, &claims, func(token *jwt.Token) (any, error) {
|
||||
return ecdsaKeyPub, nil
|
||||
}); e != nil {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user