Forum Discussion
etsygankov
4 years agoFrequent Visitor
Automatic refresh of Access Token doesn't work
I am "emedding for organization" and trying to use the automatic refresh of access token described here by providing eventHooks.accessTokenProvider. Here is the code that does embedding (notice a...
Anonymous
4 years agoNot applicable
Hi etsygankov,
I'm not so sure if the issue is caused by the compatibility of the ajax function and accessTokenProvider, have you tried to use other types of functions instead?
In addition, you can also take a look at the following document if it helps:
Refresh the access token in Power BI embedded analytics | Microsoft Docs
Regards,
Xiaoxin Sheng
- etsygankov4 years agoFrequent Visitor
The following example from documentation is what I used as a template for writing my function:
Do you know if "return token" is a string or a type? If a type, is there documentation on what that type should be?
Thanks
- Anonymous4 years agoNot applicable
HI etsygankov,
The token should be a variable defined with string type in the function and used to get the token string from API response.
Regards,Xiaoxin Sheng