{"action":"created","issue":{"url":"https://api.github.com/repos/vladkens/VK/issues/21","labels_url":"https://api.github.com/repos/vladkens/VK/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/vladkens/VK/issues/21/comments","events_url":"https://api.github.com/repos/vladkens/VK/issues/21/events","html_url":"https://github.com/vladkens/VK/issues/21","id":98609581,"number":21,"title":"Set $this->auth = true after setAccessToken","user":{"login":"akmetainfo","id":6085279,"avatar_url":"https://avatars.githubusercontent.com/u/6085279?v=3","gravatar_id":"","url":"https://api.github.com/users/akmetainfo","html_url":"https://github.com/akmetainfo","followers_url":"https://api.github.com/users/akmetainfo/followers","following_url":"https://api.github.com/users/akmetainfo/following{/other_user}","gists_url":"https://api.github.com/users/akmetainfo/gists{/gist_id}","starred_url":"https://api.github.com/users/akmetainfo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akmetainfo/subscriptions","organizations_url":"https://api.github.com/users/akmetainfo/orgs","repos_url":"https://api.github.com/users/akmetainfo/repos","events_url":"https://api.github.com/users/akmetainfo/events{/privacy}","received_events_url":"https://api.github.com/users/akmetainfo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-02T13:43:14Z","updated_at":"2015-08-02T19:37:10Z","closed_at":null,"body":"Получил на тестовой машине \"вечный\" токен, в продакшене не используется получение getAccessToken, просто читается из конфигурационного файла.\r\n\r\nПри этом обратил внимание, что нужно убирать проверку if ($vk->isAuth()) потому что setAccessToken никак не устанавливает признак авторизации.\r\n\r\nМне кажется, тут логическая нестыковка: токен установили, а признак авторизации не выставили."},"comment":{"url":"https://api.github.com/repos/vladkens/VK/issues/comments/127059972","html_url":"https://github.com/vladkens/VK/issues/21#issuecomment-127059972","issue_url":"https://api.github.com/repos/vladkens/VK/issues/21","id":127059972,"user":{"login":"vladkens","id":825754,"avatar_url":"https://avatars.githubusercontent.com/u/825754?v=3","gravatar_id":"","url":"https://api.github.com/users/vladkens","html_url":"https://github.com/vladkens","followers_url":"https://api.github.com/users/vladkens/followers","following_url":"https://api.github.com/users/vladkens/following{/other_user}","gists_url":"https://api.github.com/users/vladkens/gists{/gist_id}","starred_url":"https://api.github.com/users/vladkens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladkens/subscriptions","organizations_url":"https://api.github.com/users/vladkens/orgs","repos_url":"https://api.github.com/users/vladkens/repos","events_url":"https://api.github.com/users/vladkens/events{/privacy}","received_events_url":"https://api.github.com/users/vladkens/received_events","type":"User","site_admin":false},"created_at":"2015-08-02T19:37:10Z","updated_at":"2015-08-02T19:37:10Z","body":"Теперь isAuth сообщает о том что токен установлен но не обязательно валиден. Чтобы проверить валидность токена можно использовать checkAccessToken метод.\r\n\r\nСпасибо."}}