Forum Discussion
daniel12
10 years agoAdvocate II
PowerBI Embedded: Embed Token Expiration?
Hi there, simple question: PowerBI embedded embed tokens require to specify a time span for validity of the tokens. What is the best practice for the time span - eg. can I simply set the validity...
ThomasDay
10 years agoImpactful Individual
daniel12 did you find out a way to prevent the ugly errors? Here's what my embedded site looks like after a short time (sometimes 3 minutes--sometimes somewhat longer) if I select a new report tab. Spectacularly awful, no? Any ideas here?
wabreza
10 years agoMicrosoft Employee
In a server generated app you can get around this by generating a token for each render of the page.
In a single page app (SPA) - one option is to set a client-side timer on your page/view that is shorter than your token expiration. At that point you can regenerate the token and reload the report passing in the new access token.