{"action":"created","comment":{"url":"https://api.github.com/repos/okta/okta-auth-js/pulls/comments/70668685","id":70668685,"diff_hunk":"@@ -0,0 +1,29 @@\n+define(function(require) {\n+  var OktaAuth = require('OktaAuth');\n+  var tokens = require('../util/tokens');\n+\n+  describe('token.decode', function () {\n+\n+    function setupSync() {\n+      return new OktaAuth({ url: 'http://example.okta.com' });\n+    }\n+\n+    it('correctly decodes a token', function () {\n+      var oa = setupSync();\n+      var decodedToken = oa.token.decode(tokens.unicodeToken);\n+      expect(decodedToken).toDeepEqual(tokens.unicodeDecoded);\n+    });\n+\n+    it('throws an error for a malformed token', function () {\n+      var oa = setupSync();\n+      try {\n+        var res = oa.token.decode('malformedToken');\n+        // Should never hit this\n+        expect(res).toBeNull();","path":"test/spec/token.js","position":22,"original_position":22,"commit_id":"5ba3aae36188b19dfd89c22b1b3e9d223813d545","original_commit_id":"5ba3aae36188b19dfd89c22b1b3e9d223813d545","user":{"login":"lboyette-okta","id":6387101,"avatar_url":"https://avatars.githubusercontent.com/u/6387101?v=3","gravatar_id":"","url":"https://api.github.com/users/lboyette-okta","html_url":"https://github.com/lboyette-okta","followers_url":"https://api.github.com/users/lboyette-okta/followers","following_url":"https://api.github.com/users/lboyette-okta/following{/other_user}","gists_url":"https://api.github.com/users/lboyette-okta/gists{/gist_id}","starred_url":"https://api.github.com/users/lboyette-okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lboyette-okta/subscriptions","organizations_url":"https://api.github.com/users/lboyette-okta/orgs","repos_url":"https://api.github.com/users/lboyette-okta/repos","events_url":"https://api.github.com/users/lboyette-okta/events{/privacy}","received_events_url":"https://api.github.com/users/lboyette-okta/received_events","type":"User","site_admin":false},"body":"fair enough. I'll change it","created_at":"2016-07-13T17:18:55Z","updated_at":"2016-07-13T17:18:55Z","html_url":"https://github.com/okta/okta-auth-js/pull/26#discussion_r70668685","pull_request_url":"https://api.github.com/repos/okta/okta-auth-js/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/okta/okta-auth-js/pulls/comments/70668685"},"html":{"href":"https://github.com/okta/okta-auth-js/pull/26#discussion_r70668685"},"pull_request":{"href":"https://api.github.com/repos/okta/okta-auth-js/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/okta/okta-auth-js/pulls/26","id":77039401,"html_url":"https://github.com/okta/okta-auth-js/pull/26","diff_url":"https://github.com/okta/okta-auth-js/pull/26.diff","patch_url":"https://github.com/okta/okta-auth-js/pull/26.patch","issue_url":"https://api.github.com/repos/okta/okta-auth-js/issues/26","number":26,"state":"open","locked":false,"title":"Added authClient.token.decode","user":{"login":"lboyette-okta","id":6387101,"avatar_url":"https://avatars.githubusercontent.com/u/6387101?v=3","gravatar_id":"","url":"https://api.github.com/users/lboyette-okta","html_url":"https://github.com/lboyette-okta","followers_url":"https://api.github.com/users/lboyette-okta/followers","following_url":"https://api.github.com/users/lboyette-okta/following{/other_user}","gists_url":"https://api.github.com/users/lboyette-okta/gists{/gist_id}","starred_url":"https://api.github.com/users/lboyette-okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lboyette-okta/subscriptions","organizations_url":"https://api.github.com/users/lboyette-okta/orgs","repos_url":"https://api.github.com/users/lboyette-okta/repos","events_url":"https://api.github.com/users/lboyette-okta/events{/privacy}","received_events_url":"https://api.github.com/users/lboyette-okta/received_events","type":"User","site_admin":false},"body":"Resolves: OKTA-94712\r\n\r\n@rchild-okta \r\n@stsai-okta ","created_at":"2016-07-11T23:24:04Z","updated_at":"2016-07-13T17:18:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8abe361e685cc763f9e474f6204904cad57e47cf","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/okta/okta-auth-js/pulls/26/commits","review_comments_url":"https://api.github.com/repos/okta/okta-auth-js/pulls/26/comments","review_comment_url":"https://api.github.com/repos/okta/okta-auth-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/okta/okta-auth-js/issues/26/comments","statuses_url":"https://api.github.com/repos/okta/okta-auth-js/statuses/5ba3aae36188b19dfd89c22b1b3e9d223813d545","head":{"label":"okta:lb-94712-token-decode","ref":"lb-94712-token-decode","sha":"5ba3aae36188b19dfd89c22b1b3e9d223813d545","user":{"login":"okta","id":362460,"avatar_url":"https://avatars.githubusercontent.com/u/362460?v=3","gravatar_id":"","url":"https://api.github.com/users/okta","html_url":"https://github.com/okta","followers_url":"https://api.github.com/users/okta/followers","following_url":"https://api.github.com/users/okta/following{/other_user}","gists_url":"https://api.github.com/users/okta/gists{/gist_id}","starred_url":"https://api.github.com/users/okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okta/subscriptions","organizations_url":"https://api.github.com/users/okta/orgs","repos_url":"https://api.github.com/users/okta/repos","events_url":"https://api.github.com/users/okta/events{/privacy}","received_events_url":"https://api.github.com/users/okta/received_events","type":"Organization","site_admin":false},"repo":{"id":56723632,"name":"okta-auth-js","full_name":"okta/okta-auth-js","owner":{"login":"okta","id":362460,"avatar_url":"https://avatars.githubusercontent.com/u/362460?v=3","gravatar_id":"","url":"https://api.github.com/users/okta","html_url":"https://github.com/okta","followers_url":"https://api.github.com/users/okta/followers","following_url":"https://api.github.com/users/okta/following{/other_user}","gists_url":"https://api.github.com/users/okta/gists{/gist_id}","starred_url":"https://api.github.com/users/okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okta/subscriptions","organizations_url":"https://api.github.com/users/okta/orgs","repos_url":"https://api.github.com/users/okta/repos","events_url":"https://api.github.com/users/okta/events{/privacy}","received_events_url":"https://api.github.com/users/okta/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/okta/okta-auth-js","description":"The official js wrapper around Okta's auth API","fork":false,"url":"https://api.github.com/repos/okta/okta-auth-js","forks_url":"https://api.github.com/repos/okta/okta-auth-js/forks","keys_url":"https://api.github.com/repos/okta/okta-auth-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okta/okta-auth-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okta/okta-auth-js/teams","hooks_url":"https://api.github.com/repos/okta/okta-auth-js/hooks","issue_events_url":"https://api.github.com/repos/okta/okta-auth-js/issues/events{/number}","events_url":"https://api.github.com/repos/okta/okta-auth-js/events","assignees_url":"https://api.github.com/repos/okta/okta-auth-js/assignees{/user}","branches_url":"https://api.github.com/repos/okta/okta-auth-js/branches{/branch}","tags_url":"https://api.github.com/repos/okta/okta-auth-js/tags","blobs_url":"https://api.github.com/repos/okta/okta-auth-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okta/okta-auth-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okta/okta-auth-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/okta/okta-auth-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okta/okta-auth-js/statuses/{sha}","languages_url":"https://api.github.com/repos/okta/okta-auth-js/languages","stargazers_url":"https://api.github.com/repos/okta/okta-auth-js/stargazers","contributors_url":"https://api.github.com/repos/okta/okta-auth-js/contributors","subscribers_url":"https://api.github.com/repos/okta/okta-auth-js/subscribers","subscription_url":"https://api.github.com/repos/okta/okta-auth-js/subscription","commits_url":"https://api.github.com/repos/okta/okta-auth-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/okta/okta-auth-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/okta/okta-auth-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/okta/okta-auth-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/okta/okta-auth-js/contents/{+path}","compare_url":"https://api.github.com/repos/okta/okta-auth-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okta/okta-auth-js/merges","archive_url":"https://api.github.com/repos/okta/okta-auth-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okta/okta-auth-js/downloads","issues_url":"https://api.github.com/repos/okta/okta-auth-js/issues{/number}","pulls_url":"https://api.github.com/repos/okta/okta-auth-js/pulls{/number}","milestones_url":"https://api.github.com/repos/okta/okta-auth-js/milestones{/number}","notifications_url":"https://api.github.com/repos/okta/okta-auth-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okta/okta-auth-js/labels{/name}","releases_url":"https://api.github.com/repos/okta/okta-auth-js/releases{/id}","deployments_url":"https://api.github.com/repos/okta/okta-auth-js/deployments","created_at":"2016-04-20T21:55:56Z","updated_at":"2016-07-13T01:24:28Z","pushed_at":"2016-07-13T01:18:43Z","git_url":"git://github.com/okta/okta-auth-js.git","ssh_url":"git@github.com:okta/okta-auth-js.git","clone_url":"https://github.com/okta/okta-auth-js.git","svn_url":"https://github.com/okta/okta-auth-js","homepage":null,"size":160,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":7,"default_branch":"master"}},"base":{"label":"okta:master","ref":"master","sha":"2b79af5735e182b69b45bcb2d4fa3cef8b94d0b0","user":{"login":"okta","id":362460,"avatar_url":"https://avatars.githubusercontent.com/u/362460?v=3","gravatar_id":"","url":"https://api.github.com/users/okta","html_url":"https://github.com/okta","followers_url":"https://api.github.com/users/okta/followers","following_url":"https://api.github.com/users/okta/following{/other_user}","gists_url":"https://api.github.com/users/okta/gists{/gist_id}","starred_url":"https://api.github.com/users/okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okta/subscriptions","organizations_url":"https://api.github.com/users/okta/orgs","repos_url":"https://api.github.com/users/okta/repos","events_url":"https://api.github.com/users/okta/events{/privacy}","received_events_url":"https://api.github.com/users/okta/received_events","type":"Organization","site_admin":false},"repo":{"id":56723632,"name":"okta-auth-js","full_name":"okta/okta-auth-js","owner":{"login":"okta","id":362460,"avatar_url":"https://avatars.githubusercontent.com/u/362460?v=3","gravatar_id":"","url":"https://api.github.com/users/okta","html_url":"https://github.com/okta","followers_url":"https://api.github.com/users/okta/followers","following_url":"https://api.github.com/users/okta/following{/other_user}","gists_url":"https://api.github.com/users/okta/gists{/gist_id}","starred_url":"https://api.github.com/users/okta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okta/subscriptions","organizations_url":"https://api.github.com/users/okta/orgs","repos_url":"https://api.github.com/users/okta/repos","events_url":"https://api.github.com/users/okta/events{/privacy}","received_events_url":"https://api.github.com/users/okta/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/okta/okta-auth-js","description":"The official js wrapper around Okta's auth API","fork":false,"url":"https://api.github.com/repos/okta/okta-auth-js","forks_url":"https://api.github.com/repos/okta/okta-auth-js/forks","keys_url":"https://api.github.com/repos/okta/okta-auth-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/okta/okta-auth-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/okta/okta-auth-js/teams","hooks_url":"https://api.github.com/repos/okta/okta-auth-js/hooks","issue_events_url":"https://api.github.com/repos/okta/okta-auth-js/issues/events{/number}","events_url":"https://api.github.com/repos/okta/okta-auth-js/events","assignees_url":"https://api.github.com/repos/okta/okta-auth-js/assignees{/user}","branches_url":"https://api.github.com/repos/okta/okta-auth-js/branches{/branch}","tags_url":"https://api.github.com/repos/okta/okta-auth-js/tags","blobs_url":"https://api.github.com/repos/okta/okta-auth-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/okta/okta-auth-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/okta/okta-auth-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/okta/okta-auth-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/okta/okta-auth-js/statuses/{sha}","languages_url":"https://api.github.com/repos/okta/okta-auth-js/languages","stargazers_url":"https://api.github.com/repos/okta/okta-auth-js/stargazers","contributors_url":"https://api.github.com/repos/okta/okta-auth-js/contributors","subscribers_url":"https://api.github.com/repos/okta/okta-auth-js/subscribers","subscription_url":"https://api.github.com/repos/okta/okta-auth-js/subscription","commits_url":"https://api.github.com/repos/okta/okta-auth-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/okta/okta-auth-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/okta/okta-auth-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/okta/okta-auth-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/okta/okta-auth-js/contents/{+path}","compare_url":"https://api.github.com/repos/okta/okta-auth-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/okta/okta-auth-js/merges","archive_url":"https://api.github.com/repos/okta/okta-auth-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/okta/okta-auth-js/downloads","issues_url":"https://api.github.com/repos/okta/okta-auth-js/issues{/number}","pulls_url":"https://api.github.com/repos/okta/okta-auth-js/pulls{/number}","milestones_url":"https://api.github.com/repos/okta/okta-auth-js/milestones{/number}","notifications_url":"https://api.github.com/repos/okta/okta-auth-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/okta/okta-auth-js/labels{/name}","releases_url":"https://api.github.com/repos/okta/okta-auth-js/releases{/id}","deployments_url":"https://api.github.com/repos/okta/okta-auth-js/deployments","created_at":"2016-04-20T21:55:56Z","updated_at":"2016-07-13T01:24:28Z","pushed_at":"2016-07-13T01:18:43Z","git_url":"git://github.com/okta/okta-auth-js.git","ssh_url":"git@github.com:okta/okta-auth-js.git","clone_url":"https://github.com/okta/okta-auth-js.git","svn_url":"https://github.com/okta/okta-auth-js","homepage":null,"size":160,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/okta/okta-auth-js/pulls/26"},"html":{"href":"https://github.com/okta/okta-auth-js/pull/26"},"issue":{"href":"https://api.github.com/repos/okta/okta-auth-js/issues/26"},"comments":{"href":"https://api.github.com/repos/okta/okta-auth-js/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/okta/okta-auth-js/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/okta/okta-auth-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/okta/okta-auth-js/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/okta/okta-auth-js/statuses/5ba3aae36188b19dfd89c22b1b3e9d223813d545"}}}}
{"actor":{"display_login":"lboyette-okta"}}