I was using OpenID and we have to switch to Xamarin.Essentials.WebAuthenticator. I can get an authorization code from Okta using WebAuthenticator.AuthenticateAsync().