diff --git a/internal/command/utils.go b/internal/command/utils.go index 7e70a27..5dbae88 100644 --- a/internal/command/utils.go +++ b/internal/command/utils.go @@ -246,7 +246,7 @@ func RefreshOpenTokenInNeed(activeUser *config.PanUser) bool { } if wt != nil { params.Result = "success" - params.OldToken = activeUser.WebapiToken.AccessToken + params.OldToken = activeUser.OpenapiToken.AccessToken params.NewToken = wt.AccessToken // update for user