Skip to content

Commit

Permalink
Add function checkToken()
Browse files Browse the repository at this point in the history
  • Loading branch information
andreassolberg committed Jan 30, 2015
1 parent 785bb82 commit b0c85fc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions build/jso.js
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,13 @@ define('jso',['require','exports','module','./store','./utils','./Config'],funct

};

JSO.prototype.checkToken = function(opts) {
// var scopesRequest = this._getRequestScopes(opts);

var scopesRequire = this._getRequiredScopes(opts);
return store.getToken(this.providerID, scopesRequire);
};


// exp.jso_ensureTokens = function (ensure) {
// var providerid, scopes, token;
Expand Down
7 changes: 7 additions & 0 deletions src/jso.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,13 @@ define(function(require, exports, module) {

};

JSO.prototype.checkToken = function(opts) {
// var scopesRequest = this._getRequestScopes(opts);

var scopesRequire = this._getRequiredScopes(opts);
return store.getToken(this.providerID, scopesRequire);
};


// exp.jso_ensureTokens = function (ensure) {
// var providerid, scopes, token;
Expand Down

0 comments on commit b0c85fc

Please sign in to comment.