This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
Hi,
I'm using the package "powerbi-client-react" to embed a PowerBI report on a react application.
<PowerBIEmbed embedConfig = {{ type: 'report', // Supported types: report, dashboard, tile, visual and qna id: '<Report Id>', embedUrl: '<Embed Url>', accessToken: '<Access Token>', // Keep as empty string, null or undefined tokenType: models.TokenType.Embed }} />
The package itself works well, but I'm having trouble getting an access token (for the organization) that works. I've configured the API permissions on our app resgistration to connect to PowerBI.
However, when using this token to render the powerBI embeded, I get this network error, which suggests an invalid token:
If I get a token directly from the PowerBI developer console -- copy(powerBIAccessToken) --, this token works well. But the token that we get from the MFA OAuth doesn't work.
Thank you for your help!
Hi @Anonymous ,
MFA configuration is not controlled by PowerBI, you can disable MFA requirement for your master user following the steps described in https://docs.microsoft.com/en-us/azure/active-directory/authentication/howto-mfa-userstates
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |