We are using the OneDrive SDK inside our UWP application.
To login the user, we use the following code:
OnlineIdAuthenticationProvider msaAuthe