Automatically granting app tokens for API

Hi I have a Dashboard where I use $PSUAppToken to get a token for use in the API.

It appears -GrantAppToken is no longer a thing?

About - PowerShell Universal

If I remove -GrantAppToken it “works” the first time, but the token that gets generated only has a lifetime of 24 hours, after the 24 hours the token is expired, and a new one is not generated. So from then on it does not work.

Product: PowerShell Universal
Version: 4.0.8