User stuck on sign in screen in React Native mobile app made using Expo

I am trying to implement redirect authentication using Oauth/OIDC. After the user enters credentials in the sign in page it gets stuck and there is no error displayed.

I have used Expo for developing this application. Also the redirect uri points back to the app.

The library I am using is expo-auth-session.

Please let me know what I am doing wrong.

  1. Is there a problem with redirect to my app?
  2. Is there a configuration mistake in Okta dashboard?