Skip to content

Commit 183fc68

Browse files
return user from JWTContext.validate() (#295)
* return user from JWTContext.validate() * update version
1 parent f14d345 commit 183fc68

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/logic/auth/contexts/JWTContext.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ class JWTContext extends Context {
4747
const account = _.find(user.account, acc => acc._id === this.accountId);
4848
this.accountName = _.get(account, 'name');
4949
this._reCalculateName();
50+
return user;
5051
} catch (err) {
5152
// TODO catch 401 errors, etc...
5253
throw new CFError({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codefresh",
3-
"version": "0.16.3",
3+
"version": "0.16.4",
44
"description": "Codefresh command line utility",
55
"main": "index.js",
66
"preferGlobal": true,

0 commit comments

Comments
 (0)