Forum Discussion

gcanelon's avatar
gcanelon
Frequent Visitor
5 years ago
Solved

Token expiring in Power BI embedded (error 403)

Hello community. We are trying to embed a Power BI report using the ReactJS framework and npm installator with the following configuration:         <Report tokenType="Aad"...
  • Anonymous's avatar
    Anonymous
    5 years ago

    HI gcanelon,

    You can consider storage the resulting token string and expired date(expiration field) to variables or session and modify yours generate token function to add if statement to compare current date time and cache variables.
    After these steps, your invoke token function will force check the expiry date from caches and regenerate the token if they expired.

    Regards,

    Xiaoxin Sheng