'How to implement non-teams auth for teamsfx created react app?

Is there an example of adding authentication to a teamsfx created react app for when accessed directly with the browser, no teams? The teamfx specific mgt-element version is giving me trouble when trying to implement this.

Thanks!
Ed



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source