{"action":"created","issue":{"url":"https://api.github.com/repos/NicklasWallgren/PokemonGoAPI-PHP/issues/39","repository_url":"https://api.github.com/repos/NicklasWallgren/PokemonGoAPI-PHP","labels_url":"https://api.github.com/repos/NicklasWallgren/PokemonGoAPI-PHP/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/NicklasWallgren/PokemonGoAPI-PHP/issues/39/comments","events_url":"https://api.github.com/repos/NicklasWallgren/PokemonGoAPI-PHP/issues/39/events","html_url":"https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/39","id":169593323,"number":39,"title":"OAuth support?","user":{"login":"lmanik","id":33468,"avatar_url":"https://avatars.githubusercontent.com/u/33468?v=3","gravatar_id":"","url":"https://api.github.com/users/lmanik","html_url":"https://github.com/lmanik","followers_url":"https://api.github.com/users/lmanik/followers","following_url":"https://api.github.com/users/lmanik/following{/other_user}","gists_url":"https://api.github.com/users/lmanik/gists{/gist_id}","starred_url":"https://api.github.com/users/lmanik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmanik/subscriptions","organizations_url":"https://api.github.com/users/lmanik/orgs","repos_url":"https://api.github.com/users/lmanik/repos","events_url":"https://api.github.com/users/lmanik/events{/privacy}","received_events_url":"https://api.github.com/users/lmanik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-08-05T12:09:21Z","updated_at":"2016-08-06T13:07:59Z","closed_at":null,"body":"Hello,\r\n\r\nnot thought about adding logins using OAuth from Google?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/NicklasWallgren/PokemonGoAPI-PHP/issues/comments/238022570","html_url":"https://github.com/NicklasWallgren/PokemonGoAPI-PHP/issues/39#issuecomment-238022570","issue_url":"https://api.github.com/repos/NicklasWallgren/PokemonGoAPI-PHP/issues/39","id":238022570,"user":{"login":"DrDelay","id":15216003,"avatar_url":"https://avatars.githubusercontent.com/u/15216003?v=3","gravatar_id":"","url":"https://api.github.com/users/DrDelay","html_url":"https://github.com/DrDelay","followers_url":"https://api.github.com/users/DrDelay/followers","following_url":"https://api.github.com/users/DrDelay/following{/other_user}","gists_url":"https://api.github.com/users/DrDelay/gists{/gist_id}","starred_url":"https://api.github.com/users/DrDelay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrDelay/subscriptions","organizations_url":"https://api.github.com/users/DrDelay/orgs","repos_url":"https://api.github.com/users/DrDelay/repos","events_url":"https://api.github.com/users/DrDelay/events{/privacy}","received_events_url":"https://api.github.com/users/DrDelay/received_events","type":"User","site_admin":false},"created_at":"2016-08-06T13:07:59Z","updated_at":"2016-08-06T13:07:59Z","body":"Yeah, I mentioned it in some issue, the *authorization code* is one time use, but you get a *refresh token* that can be used on further requests. I implemented [obtaining another *id_token* by *request token*](https://github.com/DrDelay/PokemonGoAPI-PHP/blob/39808ea31e2872facca58804d21f2b4d03d4e01e/src/Authenticators/GoogleAuthCode/Clients/AuthenticationClient.php#L50) (that works, tested with a hardcoded *refresh_token*), and also the [basic \"switching\" between modes](https://github.com/DrDelay/PokemonGoAPI-PHP/blob/39808ea31e2872facca58804d21f2b4d03d4e01e/src/Authenticators/GoogleOAuthAuthenticator.php#L24-L31), but this of course lacks a cache implementation. But I feel like this (letting the user set a (PSR-6-)Cache) should be another (and more general) feature/PR."}}
{"actor":{"display_login":"DrDelay"}}