Skip to content

Commit

Permalink
Update docs and files to distribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis committed Nov 5, 2015
1 parent d8c3879 commit 9ff78f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 6 additions & 3 deletions familysearch-javascript-sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -8435,10 +8435,13 @@ FS.prototype.hasAccessToken = function() {
* @return {Object} promise that is resolved once the access token has been invalidated
*/
FS.prototype.invalidateAccessToken = function() {
var self = this;
var self = this,
accessToken = self.settings.accessToken;
self.helpers.eraseAccessToken(true);
return self.plumbing.getCollectionUrl('FSFT', 'http://oauth.net/core/2.0/endpoint/token').then(function(url) {
return self.plumbing.del(url);
return self.plumbing.getCollectionUrl('FSFT', 'logout').then(function(url) {
return self.plumbing.post(self.helpers.appendQueryParameters(url, {
'access_token': accessToken
}));
});
};

Expand Down
Loading

0 comments on commit 9ff78f1

Please sign in to comment.