Suddenly You are already Logged In Error is coming for REDIRECT URI Scheme

Hello Team, we are trying to configure APpAuth SDK with Keycloak
Steps

  1. Configured a client in keycloak with redirect uri
    com.example.demoapp://oauth2/redirect, but post click submit in login page of keycloak,
    we are getting user logged in [ this we tried from Browseritself]

http://localhost:8080/auth/realms/appsdeveloperblog/protocol/openid-connect/auth?client_id=test-mob&redirect_uri=com.example.demoapp://oauth2/redirect&state=3e622896-4927-4be2-8aca-cfdddec1d13b&response_type=code&scope=openid&nonce=39a83b3d-c6b7-4c4a-a29f-1dcf7f6e3190&code_challenge=-sUEoAV-txYvhniiuJ4-gwNCtsiD2XiIPvLQYm-sUsE&code_challenge_method=S256

When we change the redirect uri to http: kind it is not giving error