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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
ozgursarioglan
Frequent Visitor

Power BI Embedded React Generate Token key

Hello Everyone,

 

We are trying to develop a react application using this npm package.
https://www.npmjs.com/package/powerbi-report-component

 

I created a Power BI embedded environment via this link.

https://app.powerbi.com/embedsetup/

 

My organization don't have an azure account but our powerbi license is pro

I know these details: embedUrl, tokenType, accessToken 

Question 1: 

which token type should I choose? "Embed"  or "Aad" (we do not use microsoft azure)

 

Question 2:

Does the token key I use have to have a lifetime?

 

 Question 3:

Is it possible to generate token keys with username and password in the application? What's the easy way to do this?

What is the client_id in the example below? where can I get.

client_id
and which user should I connect to here?

Annotation 2020-12-14 114503.png

 

 

 





0 REPLIES 0

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.