sapcc / juno

Monorepo for the Juno microfrontend framework, microfrontend apps, design system and component library
Apache License 2.0
5 stars 3 forks source link

[oauth] Fix mock prop handling when its false #553

Open hodanoori opened 4 months ago

hodanoori commented 4 months ago

Example: In team-admin project, where the auth app is imported from widget loader, I added this prop to handle mocking auth object. But it does not work properly when its value false is. For now I added the following lines with the extra check into index.html in this project. After fixing this issue in auth app, team-admin should be adjusted accordingly.

allProps?.appProps?.isMock ? authScript.setAttribute( "data-props-mock", ${allProps?.appProps?.isMock} ) : null