Windows.Security.Authentication.Web.WebAuthenticationBroker.AuthenticateAsync throws error "value does not fall within the expected range."

I used Windows.Security.Authentication.Web.WebAuthenticationBroker.AuthenticateAsync to perform Facebook authentication and it always works well. Refer to article https://docs.microsoft.com/en-us/uwp/api/windows.security.authentication.web.webauthenticationbroker

However, it didn't work and throws error message "value does not fall within the expected range." recently. I verified the call back URL from " WebAuthenticationBroker.GetCurrentApplicationCallbackUri().AbsoluteUri" and found out that the Windows App Id is changed! So I updated the related Windows App Id in the Facebook App setting's configuration page, and now the authentication works again!

Comments

Popular posts from this blog

Top JavaScript courses helping you develop SPFx webPart with ReactJS and AngularJS

Effective LLM Prompting skills

Enable the Microsoft Power BI report file type (.pbix) in SharePoint Search