This is an automated email from the ASF dual-hosted git repository. littlecui pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/servicecomb-service-center.git
The following commit(s) were added to refs/heads/dev by this push: new c84f0e0c [fix] fix switch type (#1463) c84f0e0c is described below commit c84f0e0c022dba6319ebf86604d8ce02ca03a1e7 Author: tornado-ssy <64736788+tornado-...@users.noreply.github.com> AuthorDate: Tue Mar 26 17:50:06 2024 +0800 [fix] fix switch type (#1463) Co-authored-by: songshiyuan 00649746 <songshiyu...@huawei.com> --- server/plugin/auth/buildin/buildin.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/plugin/auth/buildin/buildin.go b/server/plugin/auth/buildin/buildin.go index b90a743b..d9570c7c 100644 --- a/server/plugin/auth/buildin/buildin.go +++ b/server/plugin/auth/buildin/buildin.go @@ -26,7 +26,6 @@ import ( "strings" "time" - "github.com/form3tech-oss/jwt-go" rbacmodel "github.com/go-chassis/cari/rbac" "github.com/go-chassis/go-chassis/v2/security/authr" "github.com/go-chassis/go-chassis/v2/server/restful" @@ -191,7 +190,7 @@ func SetTokenToCache(tokenCache *cache.Cache, rawToken string, claims interface{ switch claimsVal := claims.(type) { case error: tokenCache.Set(rawToken, claimsVal, cacheErrorItemExpTime) - case jwt.MapClaims: + case map[string]interface{}: var expr int64 switch exp := claimsVal["exp"].(type) { case float64: