Forum Discussion
Chorda
4 years agoFrequent Visitor
Refresh the token in PowerBI Embedded
I have embedded a Power BI report into my webapp using "Power BI Embedded" (following the model "embed for your customer"). All the token creation, sending them back and forth, works fine. But th...
Anonymous
4 years agoNot applicable
Hi Chorda,
In fact, I think they should have similar logic.
You can create a similar function with 'if statement' and 'get token' API to get token and expiry date time to stored into global variables.
Then you can set a loop or timer to compare system time and expiration DateTime and invoke the generate new token function to update the stored tokens to update before the expiry date.
Xiaoxin Sheng