Android redirect after Google sign in attempt

Hi, we are trying to integrate okta login in Android. The problem is that when we get navigated to Custom tabs after
val result = CredentialBootstrap.oidcClient.createWebAuthenticationClient().login(
context = eventType.context,
redirectUrl = SIGN_IN_REDIRECT_URI,
)
and use google to sign in (and not Okta credentials username/password) then the first time the redirect does not work and after successful login the user is being redirected in admin panel and not back to the app. Then if we manually navigate back to the app and try once again to login then it will open Okta’s custom tabs component it will automatically trap the redirect and correctly redirect back with proper responses (access token etc). Callback urls are correctly set, we also tried to debug WebAuthenticationClient but it seems that for the case of Google sign in no redirect is being performed. Any ideas ?