Forum Discussion
How to renew the acces token for a embedd iFrame report?
Hello,
I'm using a the embedded adress of a report, wrapped in in 10 minutes reoccruing automatic refresh, which I wrote inside the html file which is on that pc, I don't know how long it takes, but after a while there is apparently a session timeout and the "sign in" screen appears and only if someone manually signs in can run the embedded again.
Is there a way to renew the embedded token with javascript inside my html file?
Thank you very much in advance.
Best.
- Anonymous4 years ago
HI Applicable88,
You can take a look at the following link if helps:
Refresh the access token in Power BI embedded analytics | Microsoft Docs
Regards,
Xiaoxin Sheng
3 Replies
- AnonymousNot applicable
HI Applicable88,
I think you need to create a request to a function to invoke and store the embedded token string and expired time into the cache or session.
After these steps, you can add a timer to compare the current DateTime and expired time to invoke the function to generate new tokens before the current one expired.Regards,
Xiaoxin Sheng
- Applicable88
Impactful Individual
Anonymous do you know where I can get any further information how to do it, maybe in JS ?
- AnonymousNot applicable
HI Applicable88,
You can take a look at the following link if helps:
Refresh the access token in Power BI embedded analytics | Microsoft Docs
Regards,
Xiaoxin Sheng