mongodb-stitch
Advanced tools
Comparing version 0.0.10 to 0.0.11
@@ -0,1 +1,12 @@ | ||
<a name="0.0.11"></a> | ||
## [0.0.11](https://github.com/10gen/stitch-js-sdk/compare/v0.0.8...v0.0.11) (2017-06-17) | ||
### Bug Fixes | ||
* **auth:** check for legacy auth data user info ([1abb819](https://github.com/10gen/stitch-js-sdk/commit/1abb819)) | ||
* **client-auth:** fix missing `const` and incorrect use of email ([c945738](https://github.com/10gen/stitch-js-sdk/commit/c945738)) | ||
<a name="0.0.10"></a> | ||
@@ -2,0 +13,0 @@ ## [0.0.10](https://github.com/10gen/stitch-js-sdk/compare/v0.0.9...v0.0.10) (2017-06-17) |
@@ -210,3 +210,8 @@ 'use strict'; | ||
value: function authedId() { | ||
return this.get()['userId']; | ||
var authData = this.get(); | ||
if (authData.user) { | ||
return authData.user._id; | ||
} | ||
return authData.userId; | ||
} | ||
@@ -213,0 +218,0 @@ }, { |
{ | ||
"name": "mongodb-stitch", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "author": "", |
@@ -174,3 +174,8 @@ /* global window, document, fetch */ | ||
authedId() { | ||
return this.get()['userId']; | ||
const authData = this.get(); | ||
if (authData.user) { | ||
return authData.user._id; | ||
} | ||
return authData.userId; | ||
} | ||
@@ -177,0 +182,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1564845
13614