Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
cyan
Helper I
Helper I

Refresh token In embedding reports from Power BI Service

Hello everyone,

 

Seems like the generated refresh token that comes with the access token expires in 1h like the access token (I am using the AcquireTokenByAuthorizationCodeAsync), so I have to request a new access token, what is the right way to request a refresh token? or is it allowed to extend the lifetime of an Azure refresh token and how?

 

Thank you...

1 REPLY 1
Eric_Zhang
Microsoft Employee
Microsoft Employee


@cyan wrote:

Hello everyone,

 

Seems like the generated refresh token that comes with the access token expires in 1h like the access token (I am using the AcquireTokenByAuthorizationCodeAsync), so I have to request a new access token, what is the right way to request a refresh token? or is it allowed to extend the lifetime of an Azure refresh token and how?

 

Thank you...


@cyan

By defautl the refresh token lifetime is 90 days, see Configurable token lifetimes in Azure Active Directory. And in my test, the refresh token which was generated several days ago still works at this moment. To request a access token with a refresh token, you can see the POST API call in this thread, I'm not using the AAD SDK.

 

Since your question is more Azure AD related, for further question, I'd suggest you post it in the dedicated AAD forum. You'd get better response there.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.