Skip to content

Commit

Permalink
restored it back
Browse files Browse the repository at this point in the history
  • Loading branch information
zaaakher committed Sep 17, 2023
1 parent 301f8a8 commit 2abf48f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sikka/hajar",
"version": "1.1.4",
"version": "1.1.5",
"description": "Toolkit to create SaaS applications",
"author": "Sikka Software <contact@sikka.io> (http://sikka.io)",
"license": "MIT",
Expand Down
6 changes: 3 additions & 3 deletions src/core/authentication/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,10 @@ class HajarAuth {
}

async getUserByToken(token) {
if (!token) {
return null;
}
try {
if (!token) {
return null;
}
const decodedToken = this.jwt.verify(token, this.secret);
const user = await this.User.findById(decodedToken.userId);
console.log("decodedToken.userId : ", decodedToken.userId);
Expand Down

0 comments on commit 2abf48f

Please sign in to comment.