{"action":"created","issue":{"url":"https://api.github.com/repos/lynndylanhurley/ng-token-auth/issues/90","labels_url":"https://api.github.com/repos/lynndylanhurley/ng-token-auth/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/lynndylanhurley/ng-token-auth/issues/90/comments","events_url":"https://api.github.com/repos/lynndylanhurley/ng-token-auth/issues/90/events","html_url":"https://github.com/lynndylanhurley/ng-token-auth/issues/90","id":53821346,"number":90,"title":"ng-token-auth with Ionic Framework/Cordova","user":{"login":"Liampronan","id":4316904,"avatar_url":"https://avatars.githubusercontent.com/u/4316904?v=3","gravatar_id":"","url":"https://api.github.com/users/Liampronan","html_url":"https://github.com/Liampronan","followers_url":"https://api.github.com/users/Liampronan/followers","following_url":"https://api.github.com/users/Liampronan/following{/other_user}","gists_url":"https://api.github.com/users/Liampronan/gists{/gist_id}","starred_url":"https://api.github.com/users/Liampronan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Liampronan/subscriptions","organizations_url":"https://api.github.com/users/Liampronan/orgs","repos_url":"https://api.github.com/users/Liampronan/repos","events_url":"https://api.github.com/users/Liampronan/events{/privacy}","received_events_url":"https://api.github.com/users/Liampronan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-01-09T00:52:09Z","updated_at":"2015-05-18T13:35:30Z","closed_at":null,"body":"Hello! \r\n\r\nI'm using ng-token-auth + devise-token-auth for an app I'm working on, and it's working great for the browser version of my site. My auth flow uses twitter oauth. I'm attempting to use the same auth code for Ionic/Cordova on mobile, but am running into issues with the log-in flow: after hitting the omniauth callback, my app stays on the 'redirecting...' screen. \r\n\r\nI believe the issue is with the Cordova app window and the new window that is opened by ng-token-auth. I'm thinking that a solution would be to implement ng-token-auth with the InAppBrowser Cordova plugin, but wanted to check to see if anyone has run into something similar and/or has any ideas.\r\n\r\nAny help would be greatly appreciated!"},"comment":{"url":"https://api.github.com/repos/lynndylanhurley/ng-token-auth/issues/comments/103062017","html_url":"https://github.com/lynndylanhurley/ng-token-auth/issues/90#issuecomment-103062017","issue_url":"https://api.github.com/repos/lynndylanhurley/ng-token-auth/issues/90","id":103062017,"user":{"login":"davidpatrick","id":1422227,"avatar_url":"https://avatars.githubusercontent.com/u/1422227?v=3","gravatar_id":"","url":"https://api.github.com/users/davidpatrick","html_url":"https://github.com/davidpatrick","followers_url":"https://api.github.com/users/davidpatrick/followers","following_url":"https://api.github.com/users/davidpatrick/following{/other_user}","gists_url":"https://api.github.com/users/davidpatrick/gists{/gist_id}","starred_url":"https://api.github.com/users/davidpatrick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidpatrick/subscriptions","organizations_url":"https://api.github.com/users/davidpatrick/orgs","repos_url":"https://api.github.com/users/davidpatrick/repos","events_url":"https://api.github.com/users/davidpatrick/events{/privacy}","received_events_url":"https://api.github.com/users/davidpatrick/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T13:35:30Z","updated_at":"2015-05-18T13:35:30Z","body":"@casertap The ng-cordova-oauth plugin \"magic\", uses the same magic here, the InAppBrowser.  Except the cordova plugin has wrapped specific api endpoints, and has us returning the oAuth token to a fake endpoint that the InAppBrowser intercepts.  What I demonstrated here is how to build our own service and have it return the token to our server instead of a fake endpoint."}}