It seems you are experiencing issues with the login_hint and logout_hint parameters in Azure Static Web Apps (SWA). Based on the context provided, here are some insights:
- Login Hint Behavior: When using the
login_hintparameter, if the user is not logged in, it typically prompts for account selection. This is expected behavior, as the system needs to determine which account to authenticate. - Logout Hint Behavior: Similarly, when using the
logout_hintparameter while the user is logged in, the system may still prompt for account selection. This could be due to the way the logout process is handled in SWA, which may not fully support thelogout_hintfunctionality as intended. - Multiple Accounts: If a user is logged in and you attempt to use a different
login_hint, it may not switch accounts as expected. This could indicate that the session management in SWA is not recognizing the change in user context properly.
These behaviors suggest that there might be limitations or bugs in the current implementation of Azure Static Web Apps regarding the handling of login_hint and logout_hint. It may be beneficial to provide feedback to Microsoft or check for updates on this issue in the Azure community or support channels.
References: