{"action":"created","issue":{"url":"https://api.github.com/repos/maximepvrt/angular-google-gapi/issues/15","labels_url":"https://api.github.com/repos/maximepvrt/angular-google-gapi/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/maximepvrt/angular-google-gapi/issues/15/comments","events_url":"https://api.github.com/repos/maximepvrt/angular-google-gapi/issues/15/events","html_url":"https://github.com/maximepvrt/angular-google-gapi/issues/15","id":79751692,"number":15,"title":"Method for retrieving access token?","user":{"login":"vacarsu","id":11384972,"avatar_url":"https://avatars.githubusercontent.com/u/11384972?v=3","gravatar_id":"","url":"https://api.github.com/users/vacarsu","html_url":"https://github.com/vacarsu","followers_url":"https://api.github.com/users/vacarsu/followers","following_url":"https://api.github.com/users/vacarsu/following{/other_user}","gists_url":"https://api.github.com/users/vacarsu/gists{/gist_id}","starred_url":"https://api.github.com/users/vacarsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vacarsu/subscriptions","organizations_url":"https://api.github.com/users/vacarsu/orgs","repos_url":"https://api.github.com/users/vacarsu/repos","events_url":"https://api.github.com/users/vacarsu/events{/privacy}","received_events_url":"https://api.github.com/users/vacarsu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-23T06:30:39Z","updated_at":"2015-05-23T09:46:03Z","closed_at":null,"body":"I was wondering if there is an exposed method for retrieving an access token? Looking through the source code I couldn't find one. Here is why I need it, after the user logs in everything works until the user refreshes the page, then GApi returns unauthorized until the user logs out and logs in again.\r\n\r\nMy thought to fix this was to retrieve the access token and store it in local storage. if the user refreshes and can then set the access token using the setToken method and get everything running smoothly again.\r\n\r\nDo you know of any other ways around this?"},"comment":{"url":"https://api.github.com/repos/maximepvrt/angular-google-gapi/issues/comments/104876283","html_url":"https://github.com/maximepvrt/angular-google-gapi/issues/15#issuecomment-104876283","issue_url":"https://api.github.com/repos/maximepvrt/angular-google-gapi/issues/15","id":104876283,"user":{"login":"vacarsu","id":11384972,"avatar_url":"https://avatars.githubusercontent.com/u/11384972?v=3","gravatar_id":"","url":"https://api.github.com/users/vacarsu","html_url":"https://github.com/vacarsu","followers_url":"https://api.github.com/users/vacarsu/followers","following_url":"https://api.github.com/users/vacarsu/following{/other_user}","gists_url":"https://api.github.com/users/vacarsu/gists{/gist_id}","starred_url":"https://api.github.com/users/vacarsu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vacarsu/subscriptions","organizations_url":"https://api.github.com/users/vacarsu/orgs","repos_url":"https://api.github.com/users/vacarsu/repos","events_url":"https://api.github.com/users/vacarsu/events{/privacy}","received_events_url":"https://api.github.com/users/vacarsu/received_events","type":"User","site_admin":false},"created_at":"2015-05-23T09:46:03Z","updated_at":"2015-05-23T09:46:03Z","body":"Aweosme! Thanks!"}}