Login without Safari for iOS

I rejected my iPhone app using Pocket API by Apple, because of following reason today.
--
We found the following issues with the user interface of your app: The app opens a web page in mobile Safari for logging in, then returns the user to the app. The user should be able log in without opening Safari first.
--
So I had made login api not to use safari. I hope you like this.