After logging out and clearing session storage, the issue persists where the login form doesn't prompt for the account upon the next login. Various authentication flows such as loadDiscoveryDocumentAndTryLogin, loadDiscoveryDocumentAndLogin, and loadDiscoveryDocument have been tried without success.
I want the login form when i try to login next time.
You would have to clear all the cookies and/or log out directly in the authorization server. Logging out in your app does not automatically log out the user from the server.
Alternatively, you can pass this config option to your flow:
This will add the
prompt=loginparameter to the authorization request. This tells the authorization server to always show the login screen and not rely on the SSO session. However, this has to be properly implemented on the server side, so it depends on which IDP you're using and whether that provider supports theprompt=loginoption.