-
Notifications
You must be signed in to change notification settings - Fork 472
Update Embed Token
Amit Shuster edited this page Jan 24, 2021
·
5 revisions
ℹ️ This wiki has been deprecated |
---|
All our Client APIs documentation and references can be found in the new Power BI embedded analytics Client APIs documentation set. For the content of this article see Refresh the access token. |
setAccessToken can be used to update underlying Embed token without reloading the embedded report. It can be used for example if Token is expired or near expiry.
report.setAccessToken("eyJ0eXAiOiJKV1Qi..00YU")
.catch(error => { ... });
getAccessToken returns the current embed token.
var token = report.getAccessToken();
Check Refresh token using JavaScript SDK example to see an example of embedding a report and setting a listener on token expiration by using our JavaScript SDK.