Update token.go

This commit is contained in:
Daniel Hougaard
2024-06-14 07:20:49 +02:00
parent e19b67f9a2
commit 35998e98cf
+1 -1
View File
@@ -39,7 +39,7 @@ var tokenRenewCmd = &cobra.Command{
util.PrintErrorMessageAndExit("You are trying to renew a service token. You can only renew universal auth access tokens.") util.PrintErrorMessageAndExit("You are trying to renew a service token. You can only renew universal auth access tokens.")
} }
renewedAccessToken, err := util.RenewUniversalAuthAccessToken(token) renewedAccessToken, err := util.RenewMachineIdentityAccessToken(token)
if err != nil { if err != nil {
util.HandleError(err, "Unable to renew token") util.HandleError(err, "Unable to renew token")