diff --git a/pkg/common/token_verify/jwt_token.go b/pkg/common/token_verify/jwt_token.go index 6ead92ef7..703237c2d 100644 --- a/pkg/common/token_verify/jwt_token.go +++ b/pkg/common/token_verify/jwt_token.go @@ -135,8 +135,9 @@ func GetUserIDFromToken(token string, operationID string) (bool, string, string) log.Error(operationID, "ParseToken failed, ", err.Error(), token) return false, "", err.Error() } - log.Debug(operationID, "token claims.ExpiresAt.Second() ", claims.ExpiresAt.Second()) + log.Debug(operationID, "token claims.ExpiresAt.Second() ", claims.ExpiresAt.Unix()) return true, claims.UID, "" + } func ParseTokenGetUserID(token string, operationID string) (error, string) {