Facing issue on integration with flutter

When I am trying to loging through flutter app, in logs I get successful login but it did not redirect to app and show the login page only, UI does not response , if I click on login button second time, in logs I get Failed Login, with message
‘Password login via OIDC-conformant clients with externally-hosted login pages is unsupported. Alternatively, login could have been initiated from the wrong place (e.g., a bookmark)’.
can some one help me in this