Is there a way for the components to use the beta endpoint to Microsoft Graph api, example <mgt-people-picker>
selectedPeople returns the emails as a ScornedEmailAddress where the beta endpoint returns it as a RankedEmailAddress?
Edit: added my code
<script src=@string.Format("https://unpkg.com/@microsoft/mgt/dist/bundle/mgt-loader.js")></script>
<script>
const provider = new mgt.ProxyProvider("https://localhost:44375/api/GraphProxy");
provider.login = () => window.location.href = '@Url.Action("SignIn", "Account")';
provider.logout = () => window.location.href = '@Url.Action("SignOut", "Account")';
provider.graph = mgt.BetaGraph.getGraph(provider);
mgt.Providers.globalProvider = provider;
</script>
Edited solution:
<script src=@string.Format("https://unpkg.com/@microsoft/mgt/dist/bundle/mgt-loader.js")></script>
<script type="module">
const provider = new mgt.ProxyProvider("https://localhost:44375/api/GraphProxy");
provider.login = () => window.location.href = '@Url.Action("SignIn", "Account")';
provider.logout = () => window.location.href = '@Url.Action("SignOut", "Account")';
provider.graph._version = "beta";
mgt.Providers.globalProvider = provider;
</script>