Skip to content

Commit

Permalink
Merge pull request #30 from pazdera/xd-auth-issue
Browse files Browse the repository at this point in the history
bugfix: Make sure the initSession callback isn't called 2x
  • Loading branch information
vikdoro authored Mar 22, 2017
2 parents 5074354 + 63e9078 commit 7a1eaa1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/kano-world-sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ module.exports = function (config) {

// The current website is either KW or running inside Electron, we read directly the locaStorage
if (isKW || isElectron) {
p = onToken(token || localStorage.getItem('KW_TOKEN'));
return onToken(token || localStorage.getItem('KW_TOKEN'));
}
// Otherwise, contact KW to get the toekn throught the iframe
xdAuth.getCrossToken(function (err, tk) {
Expand Down
2 changes: 1 addition & 1 deletion lib/core/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ module.exports = function (config) {

// The current website is either KW or running inside Electron, we read directly the locaStorage
if (isKW || isElectron) {
p = onToken(token || localStorage.getItem('KW_TOKEN'));
return onToken(token || localStorage.getItem('KW_TOKEN'));
}
// Otherwise, contact KW to get the toekn throught the iframe
xdAuth.getCrossToken(function (err, tk) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kano-world-sdk",
"version": "3.0.15",
"version": "3.0.16",
"description": "Kano World SDK",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit 7a1eaa1

Please sign in to comment.