@aptana/multichannel-common 2.9.12 → 2.9.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -54,12 +54,13 @@ class TokenGuard {
54
54
  let user = null;
55
55
  let token = this.getTokenFromRequest();
56
56
  let { userKey, userToken } = this.getUserKeyTokenFromRequest();
57
- if (token) {
58
- user = await this._provider.getByToken(token);
59
- }
60
57
  if (userKey && userToken) {
61
58
  user = await this._provider.getByUserKeyAndUserToken(userKey, userToken);
62
59
  }
60
+ else if (token) {
61
+ user = await this._provider.getByToken(token);
62
+ }
63
+ //
63
64
  return user;
64
65
  // return this._user = user!;
65
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptana/multichannel-common",
3
- "version": "2.9.12",
3
+ "version": "2.9.13",
4
4
  "license": "MIT",
5
5
  "description": "",
6
6
  "keywords": [
@@ -54,4 +54,4 @@
54
54
  "tsc-alias": "^1.8.7",
55
55
  "typescript": "^4.9.5"
56
56
  }
57
- }
57
+ }