{"action":"created","comment":{"url":"https://api.github.com/repos/auth0/blog/pulls/comments/64916790","id":64916790,"diff_hunk":"@@ -0,0 +1,535 @@\n+---\n+layout: post\n+title: \"Cookies vs Tokens: The Definitive Guide\"\n+description: \"The cookie vs token debate favors token based authentication. Learn the advantages and get answers to common concerns regarding token based authentication.\"\n+date: 2016-05-27 08:30\n+author: \n+  name: \"Ado Kukic\"\n+  url: \"https://twitter.com/kukicadnan\"\n+  mail: \"ado@auth0.com\"\n+  avatar: \"https://s.gravatar.com/avatar/99c4080f412ccf46b9b564db7f482907?s=200\"\n+design: \n+  bg_color: \"#000000\"\n+  image: \"\"\n+tags: \n+- Cookies vs Tokens\n+- Cookies\n+- Tokens\n+- JWT\n+- Progressive Web App\n+---\n+\n+---\n+\n+**TL;DR** Tokens based authentication is more relevant than ever. We examine the differences and similarities between cookie and token based authentication, advantages of using tokens, and address common questions and concerns developers have regarding token based auth. Finally, putting theory to practice, we'll build an application that uses token based auth and introduce make it a progressive web app.","path":"_posts/2016-05-27-cookies-vs-tokens-definitive-guide.markdown","position":24,"original_position":24,"commit_id":"63f3a97d176515fb6666ba4a8160bb8c065cf9d7","original_commit_id":"63f3a97d176515fb6666ba4a8160bb8c065cf9d7","user":{"login":"chenkie","id":1847678,"avatar_url":"https://avatars.githubusercontent.com/u/1847678?v=3","gravatar_id":"","url":"https://api.github.com/users/chenkie","html_url":"https://github.com/chenkie","followers_url":"https://api.github.com/users/chenkie/followers","following_url":"https://api.github.com/users/chenkie/following{/other_user}","gists_url":"https://api.github.com/users/chenkie/gists{/gist_id}","starred_url":"https://api.github.com/users/chenkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chenkie/subscriptions","organizations_url":"https://api.github.com/users/chenkie/orgs","repos_url":"https://api.github.com/users/chenkie/repos","events_url":"https://api.github.com/users/chenkie/events{/privacy}","received_events_url":"https://api.github.com/users/chenkie/received_events","type":"User","site_admin":false},"body":"General note here: consider using \"token-based\" with the dash each time. Also, consider calling it just \"token authentication\" in some cases. The \"based\" part seems like it pops up too much :)","created_at":"2016-05-27T14:52:32Z","updated_at":"2016-05-27T14:52:32Z","html_url":"https://github.com/auth0/blog/pull/311#discussion_r64916790","pull_request_url":"https://api.github.com/repos/auth0/blog/pulls/311","_links":{"self":{"href":"https://api.github.com/repos/auth0/blog/pulls/comments/64916790"},"html":{"href":"https://github.com/auth0/blog/pull/311#discussion_r64916790"},"pull_request":{"href":"https://api.github.com/repos/auth0/blog/pulls/311"}}},"pull_request":{"url":"https://api.github.com/repos/auth0/blog/pulls/311","id":71642919,"html_url":"https://github.com/auth0/blog/pull/311","diff_url":"https://github.com/auth0/blog/pull/311.diff","patch_url":"https://github.com/auth0/blog/pull/311.patch","issue_url":"https://api.github.com/repos/auth0/blog/issues/311","number":311,"state":"open","locked":false,"title":"Cookies vs Tokens Definitive Guide blog post.","user":{"login":"kukicadnan","id":1770570,"avatar_url":"https://avatars.githubusercontent.com/u/1770570?v=3","gravatar_id":"","url":"https://api.github.com/users/kukicadnan","html_url":"https://github.com/kukicadnan","followers_url":"https://api.github.com/users/kukicadnan/followers","following_url":"https://api.github.com/users/kukicadnan/following{/other_user}","gists_url":"https://api.github.com/users/kukicadnan/gists{/gist_id}","starred_url":"https://api.github.com/users/kukicadnan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kukicadnan/subscriptions","organizations_url":"https://api.github.com/users/kukicadnan/orgs","repos_url":"https://api.github.com/users/kukicadnan/repos","events_url":"https://api.github.com/users/kukicadnan/events{/privacy}","received_events_url":"https://api.github.com/users/kukicadnan/received_events","type":"User","site_admin":false},"body":"Still need to add image. Feedback on content welcome :)","created_at":"2016-05-27T00:00:31Z","updated_at":"2016-05-27T14:52:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2379e35dabdb6f7f2a973a81c02eb2f0dcec2238","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/auth0/blog/pulls/311/commits","review_comments_url":"https://api.github.com/repos/auth0/blog/pulls/311/comments","review_comment_url":"https://api.github.com/repos/auth0/blog/pulls/comments{/number}","comments_url":"https://api.github.com/repos/auth0/blog/issues/311/comments","statuses_url":"https://api.github.com/repos/auth0/blog/statuses/63f3a97d176515fb6666ba4a8160bb8c065cf9d7","head":{"label":"auth0:cookies-vs-tokens-blog","ref":"cookies-vs-tokens-blog","sha":"63f3a97d176515fb6666ba4a8160bb8c065cf9d7","user":{"login":"auth0","id":2824157,"avatar_url":"https://avatars.githubusercontent.com/u/2824157?v=3","gravatar_id":"","url":"https://api.github.com/users/auth0","html_url":"https://github.com/auth0","followers_url":"https://api.github.com/users/auth0/followers","following_url":"https://api.github.com/users/auth0/following{/other_user}","gists_url":"https://api.github.com/users/auth0/gists{/gist_id}","starred_url":"https://api.github.com/users/auth0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auth0/subscriptions","organizations_url":"https://api.github.com/users/auth0/orgs","repos_url":"https://api.github.com/users/auth0/repos","events_url":"https://api.github.com/users/auth0/events{/privacy}","received_events_url":"https://api.github.com/users/auth0/received_events","type":"Organization","site_admin":false},"repo":{"id":7830124,"name":"blog","full_name":"auth0/blog","owner":{"login":"auth0","id":2824157,"avatar_url":"https://avatars.githubusercontent.com/u/2824157?v=3","gravatar_id":"","url":"https://api.github.com/users/auth0","html_url":"https://github.com/auth0","followers_url":"https://api.github.com/users/auth0/followers","following_url":"https://api.github.com/users/auth0/following{/other_user}","gists_url":"https://api.github.com/users/auth0/gists{/gist_id}","starred_url":"https://api.github.com/users/auth0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auth0/subscriptions","organizations_url":"https://api.github.com/users/auth0/orgs","repos_url":"https://api.github.com/users/auth0/repos","events_url":"https://api.github.com/users/auth0/events{/privacy}","received_events_url":"https://api.github.com/users/auth0/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/auth0/blog","description":"auth0 blog","fork":false,"url":"https://api.github.com/repos/auth0/blog","forks_url":"https://api.github.com/repos/auth0/blog/forks","keys_url":"https://api.github.com/repos/auth0/blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/auth0/blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/auth0/blog/teams","hooks_url":"https://api.github.com/repos/auth0/blog/hooks","issue_events_url":"https://api.github.com/repos/auth0/blog/issues/events{/number}","events_url":"https://api.github.com/repos/auth0/blog/events","assignees_url":"https://api.github.com/repos/auth0/blog/assignees{/user}","branches_url":"https://api.github.com/repos/auth0/blog/branches{/branch}","tags_url":"https://api.github.com/repos/auth0/blog/tags","blobs_url":"https://api.github.com/repos/auth0/blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/auth0/blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/auth0/blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/auth0/blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/auth0/blog/statuses/{sha}","languages_url":"https://api.github.com/repos/auth0/blog/languages","stargazers_url":"https://api.github.com/repos/auth0/blog/stargazers","contributors_url":"https://api.github.com/repos/auth0/blog/contributors","subscribers_url":"https://api.github.com/repos/auth0/blog/subscribers","subscription_url":"https://api.github.com/repos/auth0/blog/subscription","commits_url":"https://api.github.com/repos/auth0/blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/auth0/blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/auth0/blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/auth0/blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/auth0/blog/contents/{+path}","compare_url":"https://api.github.com/repos/auth0/blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/auth0/blog/merges","archive_url":"https://api.github.com/repos/auth0/blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/auth0/blog/downloads","issues_url":"https://api.github.com/repos/auth0/blog/issues{/number}","pulls_url":"https://api.github.com/repos/auth0/blog/pulls{/number}","milestones_url":"https://api.github.com/repos/auth0/blog/milestones{/number}","notifications_url":"https://api.github.com/repos/auth0/blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/auth0/blog/labels{/name}","releases_url":"https://api.github.com/repos/auth0/blog/releases{/id}","deployments_url":"https://api.github.com/repos/auth0/blog/deployments","created_at":"2013-01-25T22:57:37Z","updated_at":"2016-05-24T06:39:23Z","pushed_at":"2016-05-27T00:00:31Z","git_url":"git://github.com/auth0/blog.git","ssh_url":"git@github.com:auth0/blog.git","clone_url":"https://github.com/auth0/blog.git","svn_url":"https://github.com/auth0/blog","homepage":"https://auth0.com/blog","size":17222,"stargazers_count":16,"watchers_count":16,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":10,"forks":32,"open_issues":10,"watchers":16,"default_branch":"master"}},"base":{"label":"auth0:master","ref":"master","sha":"38823f4d8cdf6102414c1c248fe900605872c216","user":{"login":"auth0","id":2824157,"avatar_url":"https://avatars.githubusercontent.com/u/2824157?v=3","gravatar_id":"","url":"https://api.github.com/users/auth0","html_url":"https://github.com/auth0","followers_url":"https://api.github.com/users/auth0/followers","following_url":"https://api.github.com/users/auth0/following{/other_user}","gists_url":"https://api.github.com/users/auth0/gists{/gist_id}","starred_url":"https://api.github.com/users/auth0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auth0/subscriptions","organizations_url":"https://api.github.com/users/auth0/orgs","repos_url":"https://api.github.com/users/auth0/repos","events_url":"https://api.github.com/users/auth0/events{/privacy}","received_events_url":"https://api.github.com/users/auth0/received_events","type":"Organization","site_admin":false},"repo":{"id":7830124,"name":"blog","full_name":"auth0/blog","owner":{"login":"auth0","id":2824157,"avatar_url":"https://avatars.githubusercontent.com/u/2824157?v=3","gravatar_id":"","url":"https://api.github.com/users/auth0","html_url":"https://github.com/auth0","followers_url":"https://api.github.com/users/auth0/followers","following_url":"https://api.github.com/users/auth0/following{/other_user}","gists_url":"https://api.github.com/users/auth0/gists{/gist_id}","starred_url":"https://api.github.com/users/auth0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/auth0/subscriptions","organizations_url":"https://api.github.com/users/auth0/orgs","repos_url":"https://api.github.com/users/auth0/repos","events_url":"https://api.github.com/users/auth0/events{/privacy}","received_events_url":"https://api.github.com/users/auth0/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/auth0/blog","description":"auth0 blog","fork":false,"url":"https://api.github.com/repos/auth0/blog","forks_url":"https://api.github.com/repos/auth0/blog/forks","keys_url":"https://api.github.com/repos/auth0/blog/keys{/key_id}","collaborators_url":"https://api.github.com/repos/auth0/blog/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/auth0/blog/teams","hooks_url":"https://api.github.com/repos/auth0/blog/hooks","issue_events_url":"https://api.github.com/repos/auth0/blog/issues/events{/number}","events_url":"https://api.github.com/repos/auth0/blog/events","assignees_url":"https://api.github.com/repos/auth0/blog/assignees{/user}","branches_url":"https://api.github.com/repos/auth0/blog/branches{/branch}","tags_url":"https://api.github.com/repos/auth0/blog/tags","blobs_url":"https://api.github.com/repos/auth0/blog/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/auth0/blog/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/auth0/blog/git/refs{/sha}","trees_url":"https://api.github.com/repos/auth0/blog/git/trees{/sha}","statuses_url":"https://api.github.com/repos/auth0/blog/statuses/{sha}","languages_url":"https://api.github.com/repos/auth0/blog/languages","stargazers_url":"https://api.github.com/repos/auth0/blog/stargazers","contributors_url":"https://api.github.com/repos/auth0/blog/contributors","subscribers_url":"https://api.github.com/repos/auth0/blog/subscribers","subscription_url":"https://api.github.com/repos/auth0/blog/subscription","commits_url":"https://api.github.com/repos/auth0/blog/commits{/sha}","git_commits_url":"https://api.github.com/repos/auth0/blog/git/commits{/sha}","comments_url":"https://api.github.com/repos/auth0/blog/comments{/number}","issue_comment_url":"https://api.github.com/repos/auth0/blog/issues/comments{/number}","contents_url":"https://api.github.com/repos/auth0/blog/contents/{+path}","compare_url":"https://api.github.com/repos/auth0/blog/compare/{base}...{head}","merges_url":"https://api.github.com/repos/auth0/blog/merges","archive_url":"https://api.github.com/repos/auth0/blog/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/auth0/blog/downloads","issues_url":"https://api.github.com/repos/auth0/blog/issues{/number}","pulls_url":"https://api.github.com/repos/auth0/blog/pulls{/number}","milestones_url":"https://api.github.com/repos/auth0/blog/milestones{/number}","notifications_url":"https://api.github.com/repos/auth0/blog/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/auth0/blog/labels{/name}","releases_url":"https://api.github.com/repos/auth0/blog/releases{/id}","deployments_url":"https://api.github.com/repos/auth0/blog/deployments","created_at":"2013-01-25T22:57:37Z","updated_at":"2016-05-24T06:39:23Z","pushed_at":"2016-05-27T00:00:31Z","git_url":"git://github.com/auth0/blog.git","ssh_url":"git@github.com:auth0/blog.git","clone_url":"https://github.com/auth0/blog.git","svn_url":"https://github.com/auth0/blog","homepage":"https://auth0.com/blog","size":17222,"stargazers_count":16,"watchers_count":16,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":10,"forks":32,"open_issues":10,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/auth0/blog/pulls/311"},"html":{"href":"https://github.com/auth0/blog/pull/311"},"issue":{"href":"https://api.github.com/repos/auth0/blog/issues/311"},"comments":{"href":"https://api.github.com/repos/auth0/blog/issues/311/comments"},"review_comments":{"href":"https://api.github.com/repos/auth0/blog/pulls/311/comments"},"review_comment":{"href":"https://api.github.com/repos/auth0/blog/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/auth0/blog/pulls/311/commits"},"statuses":{"href":"https://api.github.com/repos/auth0/blog/statuses/63f3a97d176515fb6666ba4a8160bb8c065cf9d7"}}}}
{"actor":{"display_login":"chenkie"}}