Skip to content

Commit

Permalink
fix: return empty object if null
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Oct 9, 2023
1 parent 16becc3 commit 9c7445e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function decodeToken(token) {
return { user_id: user._id, expires: user.expires };

users.delete(token)
return null
return {}

}

Expand Down

0 comments on commit 9c7445e

Please sign in to comment.