PowerBI crendentials are expiring after an hour

Hi everyone,
I’ve just created a Power BI OAuth2 credential to run dax queries on a dataset in the Power BI Service. The setup works fine in the beginning but the credential stops working after about one hour.
Has anyone faced this issue before or knows how to keep the credential active?
Thanks a lot!

Did you try new credentials every time it stopped working? and did you check their api, like do they have certain limit or something?