I’m using this package to implement LinkedIn login, and I’ve run into an issue when trying to switch user accounts.
If an existing LinkedIn session is active, attempting to sign in again does not show the LinkedIn login screen. Instead, it automatically logs in with the previously authenticated user.
I’ve tried logging out using the following code:
await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
However, this does not seem to log the user out of LinkedIn, and the same account continues to be used on subsequent login attempts. Is there a recommended way to fully sign out or force the login prompt to allow account switching?
I’m using this package to implement LinkedIn login, and I’ve run into an issue when trying to switch user accounts.
If an existing LinkedIn session is active, attempting to sign in again does not show the LinkedIn login screen. Instead, it automatically logs in with the previously authenticated user.
I’ve tried logging out using the following code:
await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);However, this does not seem to log the user out of LinkedIn, and the same account continues to be used on subsequent login attempts. Is there a recommended way to fully sign out or force the login prompt to allow account switching?