Skip to content

Commit

Permalink
/valid/isValid
Browse files Browse the repository at this point in the history
  • Loading branch information
salzhrani committed Jan 28, 2018
1 parent 120ed31 commit b5c23dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ const validate = async function (decoded, request, h) {

// do your checks to see if the person is valid
if (!people[decoded.id]) {
return { valid: false };
return { isValid: false };
}
else {
return { valid : true };
return { isValid : true };
}
};

Expand Down

0 comments on commit b5c23dd

Please sign in to comment.