public static string PromptUser(OAuthCredentials credentials, IEnumerable<string> scopes) { var dialog = new OAuthLoginFlowWindow(credentials, scopes); dialog.ShowModal(); return dialog.ViewModel.RefreshCode; }