How to use Okta react native sdk and external idps?

We are using the okta react native sdk. We have a few external idps we redirect to for certain users. The okta sign in widget on our web pages handles these fine with IDP discovery turned on. The okta react native sdk doesn’t appear to have this option for custom sign in. I’m assuming to get the idp redirection to work we would have to use the broswer sign in? Is there a way to get that idp discovery to work with a custom sign options?

@jjcbt Are you referring the below Okta react native sdk? The sdk does include custom sign in and browser sign in.

Please refer the below logic:

The basic flow would be:

You don’t need to use auth-js to do this, as it’s a public API. WebFinger | Okta Developer

Please have a try if this idea works.

So if I understand correctly, our custom login screen would take the email, and use the web finger api to see if the user needs to use an external idp. If the user does then we would have to use the signInWithBrowser({ idp: ‘your_idp_here’ }); option with the react native sdk?