When i login a user using the customer account API in my react native application, I get directed to the orders page and then redirected to the mobile application

Interesting, so it’s redirecting to the customer account page on your shop instead of staying in the mobile application?

Let me investigate.