{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/issues/318","labels_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/issues/318/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/issues/318/comments","events_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/issues/318/events","html_url":"https://github.com/ParsePlatform/Parse-SDK-Android/issues/318","id":123548475,"number":318,"title":"Android. Parse.com: Invalid Session Token","user":{"login":"artemidius","id":9936670,"avatar_url":"https://avatars.githubusercontent.com/u/9936670?v=3","gravatar_id":"","url":"https://api.github.com/users/artemidius","html_url":"https://github.com/artemidius","followers_url":"https://api.github.com/users/artemidius/followers","following_url":"https://api.github.com/users/artemidius/following{/other_user}","gists_url":"https://api.github.com/users/artemidius/gists{/gist_id}","starred_url":"https://api.github.com/users/artemidius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artemidius/subscriptions","organizations_url":"https://api.github.com/users/artemidius/orgs","repos_url":"https://api.github.com/users/artemidius/repos","events_url":"https://api.github.com/users/artemidius/events{/privacy}","received_events_url":"https://api.github.com/users/artemidius/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/labels/product%20usage","name":"product usage","color":"eeeeee"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-22T20:13:54Z","updated_at":"2015-12-22T20:45:06Z","closed_at":"2015-12-22T20:20:08Z","body":"Please help!\r\n\r\n**Short question**: \r\nI try to login ParseUser with session token like this:\r\n\r\n    ParseUser.becomeInBackground(token);\r\nIt always goes ok on first login. But it always fails when I retry. I get \"invalid session token\" error. Session stays the same. Any other info on token is hidden.\r\n\r\n**Detailed question**\r\nI'am building app for parents and kids. It is suggested that 2 users start app on their (different) devices using one account (one ParseUser for various devices logged in at one time).\r\nFirst a parent signs in on his devices. Then he generates QR-code with session token. \r\n\r\n    String token = ParseUser.getCurrentUser().getSessionToken();\r\n    Bitmap bitmap = encodeAsBitmap(token);\r\n    qrView.setImageBitmap(bitmap);\r\n\r\nKid's device reads this QR and logs in.\r\nThis procedure goes fine at first time. But if I log out kid's device and try to login by QR for the second time it fails with \"invalid session token\". It also fails when i try to login second kid's device.\r\nWhen I delete session manually in parse-dashboard, I can log in kid's device with QR again but only for once. \r\n\r\nI tried my best to find some solution but I didn't succeed.\r\n\r\nDear expert-level developers, help me on this issue."},"comment":{"url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/issues/comments/166725535","html_url":"https://github.com/ParsePlatform/Parse-SDK-Android/issues/318#issuecomment-166725535","issue_url":"https://api.github.com/repos/ParsePlatform/Parse-SDK-Android/issues/318","id":166725535,"user":{"login":"artemidius","id":9936670,"avatar_url":"https://avatars.githubusercontent.com/u/9936670?v=3","gravatar_id":"","url":"https://api.github.com/users/artemidius","html_url":"https://github.com/artemidius","followers_url":"https://api.github.com/users/artemidius/followers","following_url":"https://api.github.com/users/artemidius/following{/other_user}","gists_url":"https://api.github.com/users/artemidius/gists{/gist_id}","starred_url":"https://api.github.com/users/artemidius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artemidius/subscriptions","organizations_url":"https://api.github.com/users/artemidius/orgs","repos_url":"https://api.github.com/users/artemidius/repos","events_url":"https://api.github.com/users/artemidius/events{/privacy}","received_events_url":"https://api.github.com/users/artemidius/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T20:45:06Z","updated_at":"2015-12-22T20:45:06Z","body":"Dear grantland I still see no solution for described problem. So bug is suggested. Why don't you want to discuss it?"}}