{"action":"closed","issue":{"url":"https://api.github.com/repos/kentcdodds/ama/issues/155","repository_url":"https://api.github.com/repos/kentcdodds/ama","labels_url":"https://api.github.com/repos/kentcdodds/ama/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/kentcdodds/ama/issues/155/comments","events_url":"https://api.github.com/repos/kentcdodds/ama/issues/155/events","html_url":"https://github.com/kentcdodds/ama/issues/155","id":163288921,"number":155,"title":"Authentication with React and REST Calls","user":{"login":"tetter36","id":5679760,"avatar_url":"https://avatars.githubusercontent.com/u/5679760?v=3","gravatar_id":"","url":"https://api.github.com/users/tetter36","html_url":"https://github.com/tetter36","followers_url":"https://api.github.com/users/tetter36/followers","following_url":"https://api.github.com/users/tetter36/following{/other_user}","gists_url":"https://api.github.com/users/tetter36/gists{/gist_id}","starred_url":"https://api.github.com/users/tetter36/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tetter36/subscriptions","organizations_url":"https://api.github.com/users/tetter36/orgs","repos_url":"https://api.github.com/users/tetter36/repos","events_url":"https://api.github.com/users/tetter36/events{/privacy}","received_events_url":"https://api.github.com/users/tetter36/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-30T23:30:05Z","updated_at":"2016-07-01T03:25:22Z","closed_at":"2016-07-01T03:25:21Z","body":"Hey Kent,\r\n\r\nI’ve been trying to add authentication to the application that I showed you a few weeks ago, but I’m at a loss for the best way to go about doing it and wanted to get your opinion. My app runs using REST calls and in order to make an authenticated callout I need an access token that’s provided by the server. However, it’s not a true SPA so I can’t store it in a redux store for retrieval because every time a new page is loaded, it pulls the page from the server. I have read conflicting things about whether or not to pass the access token as a parameter or save it to a cookie. I need the access token to pass as a parameter or header when making my calls to the server to get the data. Do you have any experience or opinion on this?"}}
{"actor":{"display_login":"kentcdodds"}}