Authentication using O365 in Mobile App

Authentication using O365 in Mobile App

Need help or tips on how can I authenticate using Office 365 in a mobile phone app.

We are still checking on how to use the InApp browser but we are having difficulty on catching the authentication result since the InApp browser is giving out a URL but what we actually need is for it to redirect back to the application after the user is authenticated or not.