{"action":"created","issue":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1717","repository_url":"https://api.github.com/repos/ParsePlatform/parse-server","labels_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1717/labels{/name}","comments_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1717/comments","events_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1717/events","html_url":"https://github.com/ParsePlatform/parse-server/issues/1717","id":153603931,"number":1717,"title":"Parse.User.become is returning - invalid session","user":{"login":"gapipro","id":1249632,"avatar_url":"https://avatars.githubusercontent.com/u/1249632?v=3","gravatar_id":"","url":"https://api.github.com/users/gapipro","html_url":"https://github.com/gapipro","followers_url":"https://api.github.com/users/gapipro/followers","following_url":"https://api.github.com/users/gapipro/following{/other_user}","gists_url":"https://api.github.com/users/gapipro/gists{/gist_id}","starred_url":"https://api.github.com/users/gapipro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gapipro/subscriptions","organizations_url":"https://api.github.com/users/gapipro/orgs","repos_url":"https://api.github.com/users/gapipro/repos","events_url":"https://api.github.com/users/gapipro/events{/privacy}","received_events_url":"https://api.github.com/users/gapipro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-07T16:38:57Z","updated_at":"2016-05-28T07:06:17Z","closed_at":null,"body":"So today `Parse.User.become` function stopped working for me.\r\n\r\nBefore it worked ok but now I always get this error:\r\n\r\n`{\"code\":101,\"message\":\"invalid session\"}\r\n`\r\n\r\nFor testing this I made simple functions:\r\n\r\n```\r\napp.get('/login/me',function(req,res){\r\n    var curr = Parse.User.current();\r\n    res.json({user:curr,success:true,token:curr.getSessionToken()});\r\n});\r\n\r\napp.get('/test',function(req,res){\r\n    var a = \"r:wqBOELvWLjFXxX6r7Nv6r8a5Z\"; //token returned from /login/me\r\n    Parse.User.become(a).then(function (user) {\r\n        res.json({success:true});\r\n    }, function (error) {\r\n        Parse.User.logOut();\r\n        res.json(error);\r\n    });\r\n});\r\n```\r\n\r\nI tried cloning whole app and it still doesn't work.\r\n\r\nAny idea whats wrong? \r\n"},"comment":{"url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/comments/222294288","html_url":"https://github.com/ParsePlatform/parse-server/issues/1717#issuecomment-222294288","issue_url":"https://api.github.com/repos/ParsePlatform/parse-server/issues/1717","id":222294288,"user":{"login":"mbilling","id":973790,"avatar_url":"https://avatars.githubusercontent.com/u/973790?v=3","gravatar_id":"","url":"https://api.github.com/users/mbilling","html_url":"https://github.com/mbilling","followers_url":"https://api.github.com/users/mbilling/followers","following_url":"https://api.github.com/users/mbilling/following{/other_user}","gists_url":"https://api.github.com/users/mbilling/gists{/gist_id}","starred_url":"https://api.github.com/users/mbilling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbilling/subscriptions","organizations_url":"https://api.github.com/users/mbilling/orgs","repos_url":"https://api.github.com/users/mbilling/repos","events_url":"https://api.github.com/users/mbilling/events{/privacy}","received_events_url":"https://api.github.com/users/mbilling/received_events","type":"User","site_admin":false},"created_at":"2016-05-28T07:06:17Z","updated_at":"2016-05-28T07:06:17Z","body":"You should read this https://github.com/ParsePlatform/parse-server/wiki/Compatibility-with-Hosted-Parse\r\n\r\nParse.User.current() is dead\r\n.become is dead\r\n{sessionToken: req.user.getSessionToken(), succes: ..., error:...} is the new way forward moving from parse.com to parse-server  :)"}}
{"actor":{"display_login":"mbilling"}}