Retrieve data from InAppBrowser to the app

Is it possible to do a login page in InAppBrowser and then retrieve token to the app to use?