Hello folks!
I use the following login method in my WPF application.
1. User click on WPF desktop app login button, the wpf form disappears, a web browser opens up.
2. The user is redirected to the project web browser login form. At the same time WPF app closes down.
3. If the user enters right credentials the web app generates token that the WPF app intercepts on startup in the method below:
protected override void OnStartup(StartupEventArgs e)
{
if (Environment.GetCommandLineArgs().Length > 1)
{
// here I get token using Environment.GetCommandLineArgs() function
var token = Environment.GetCommandLineArgs()[1];
My question is. is it possible to get the token without restarting WPF app?
Any help is appreciated!