Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello everyone! I developed an application in REACT in which I make an embedded report and I need to solve the issue of the token either Aad (azure active directory) or Embed so that the duration of the same is long or to refresh the token without the need to embed it manually.
I visited this microsoft page which tells you how to refresh the token but in one part it asks you to add the function to get the token which is what I would be needing.
Thank you very much
https://learn.microsoft.com/es-es/javascript/api/overview/powerbi/refresh-token
Translated with www.DeepL.com/Translator (free version)
Solved! Go to Solution.
Hi @lbarone ,
Embed token has its lifetime and it will expire after out of its lifetime.
You may refer to below blogs to learn how to generate embed token and how to extend the token lifetime.
For reference:
Access token setting expiration times
Configurable token lifetimes in the Microsoft identity platform (preview)
If you want to automatically refresh token, you can learn this blog.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @lbarone ,
Embed token has its lifetime and it will expire after out of its lifetime.
You may refer to below blogs to learn how to generate embed token and how to extend the token lifetime.
For reference:
Access token setting expiration times
Configurable token lifetimes in the Microsoft identity platform (preview)
If you want to automatically refresh token, you can learn this blog.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |