{"action":"created","issue":{"url":"https://api.github.com/repos/privly/privly-android/issues/67","repository_url":"https://api.github.com/repos/privly/privly-android","labels_url":"https://api.github.com/repos/privly/privly-android/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/privly/privly-android/issues/67/comments","events_url":"https://api.github.com/repos/privly/privly-android/issues/67/events","html_url":"https://github.com/privly/privly-android/issues/67","id":134755209,"number":67,"title":"Automatic Log out just after Log in","user":{"login":"mkash32","id":11131759,"avatar_url":"https://avatars.githubusercontent.com/u/11131759?v=3","gravatar_id":"","url":"https://api.github.com/users/mkash32","html_url":"https://github.com/mkash32","followers_url":"https://api.github.com/users/mkash32/followers","following_url":"https://api.github.com/users/mkash32/following{/other_user}","gists_url":"https://api.github.com/users/mkash32/gists{/gist_id}","starred_url":"https://api.github.com/users/mkash32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkash32/subscriptions","organizations_url":"https://api.github.com/users/mkash32/orgs","repos_url":"https://api.github.com/users/mkash32/repos","events_url":"https://api.github.com/users/mkash32/events{/privacy}","received_events_url":"https://api.github.com/users/mkash32/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-02-19T02:33:44Z","updated_at":"2016-02-19T15:07:10Z","closed_at":null,"body":"Since the login isn't working currently, I went to https://privlyalpha.org/token_authentications/new and logged in to get my auth_token and I hard-coded it into the project. After logging into the android app, the privly main page is visible and at the top the status is shown as \r\n\r\n> \"Pending Server Check, Application is checking its connection with the remote server\" \r\n\r\nThis activity is visible for a second and then it goes back to the login activity. The call to log out is being made in the JsObject: https://github.com/privly/privly-android/blob/master/app/src/main/java/ly/priv/mobile/utils/JsObject.java#L115.\r\nThis is being called from the javascript code: https://github.com/privly/privly-applications/blob/30b06e77f57eedc451956e318b7ddc5e00877196/shared/javascripts/network_service.js#L447\r\n\r\nI'm assuming some checks are being done in the JS code that are redirecting me to log out everytime. Could this be due to harcoding the auth_token?\r\n \r\nIf not, does anyone know why this is happening?\r\n"},"comment":{"url":"https://api.github.com/repos/privly/privly-android/issues/comments/186251343","html_url":"https://github.com/privly/privly-android/issues/67#issuecomment-186251343","issue_url":"https://api.github.com/repos/privly/privly-android/issues/67","id":186251343,"user":{"login":"mkash32","id":11131759,"avatar_url":"https://avatars.githubusercontent.com/u/11131759?v=3","gravatar_id":"","url":"https://api.github.com/users/mkash32","html_url":"https://github.com/mkash32","followers_url":"https://api.github.com/users/mkash32/followers","following_url":"https://api.github.com/users/mkash32/following{/other_user}","gists_url":"https://api.github.com/users/mkash32/gists{/gist_id}","starred_url":"https://api.github.com/users/mkash32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkash32/subscriptions","organizations_url":"https://api.github.com/users/mkash32/orgs","repos_url":"https://api.github.com/users/mkash32/repos","events_url":"https://api.github.com/users/mkash32/events{/privacy}","received_events_url":"https://api.github.com/users/mkash32/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T15:07:09Z","updated_at":"2016-02-19T15:07:09Z","body":"Ok sure, thanks!"}}