The same thing happens, I tried using both redirect urls:
const redirectUrl = Linking.makeUrl(); // exp://192.168.0.11:19000 in dev mode
const redirectUrl2 = Constants.linkingUrl; // exp://192.168.0.11:19000/ in dev mode
That module is pretty nasty and I would discourage you from using it. I was able to get it to work but at best, it will show a popup asking “Expo.io wants permission to log in” or something like that. I consider that to be atrocious user experience and completely unacceptable from a usability perspective.
I would encourage you to research and find out if there is an api endpoint that can give you an auth token… It looks like they do have support for an entirely programmatic flow:
I got response from trade it support team. There is no way for me to use API directly.
Full respopnse:
Blockquote
Thank you for your query to TradeIt. As it relates to the account linking process, we only work with brokers’ APIs that support oAuth. Thus, the end user will also be required to link their brokerage account with their own log in credentials. We do not capture the end user’s log in credentials nor do we capture any personal identifiable information. As such, the oAuth screen is required to be presented to the end user to initial link their account. Once the account is linked, a refresh token will be issued, allowing the user to access their account for portfolio refreshes, etc.
Hope this helps as well as provides you with the rationale for the oAuth screen presentation.