Forum Discussion
varman
8 years agoFrequent Visitor
Generate token automatically when its getting expired
I'm using embed url for the dashboard. So I'm creating fresh token from postman, and applying the generated token in javascript. This working fine until the token expires. My problem is, I need to al...
v-micsh-msft
8 years agoMicrosoft Employee
Have you checked the following example?
Refresh token using JavaScript SDK example
The basic step should be:
1. Set a listener for token expire,
2. Use the generateEmbedToken () function to update the embed token.
Access token is a little different, see if the following article would help:
Get an authentication access token
Regards,
Michael
varman
8 years agoFrequent Visitor
Thank you so much for your contribution. This code is in .net. But I'm using java and javascript. Can't I implement this in javascript? Is there any tutorial for that? I feel better to do it in javascript.
- Anonymous7 years agoNot applicableWhat is that first function in the example? Is it triggered by the SDK? Should be executed on load?