Skip to content

Instantly share code, notes, and snippets.

@DeskWOW
Created March 11, 2016 00:08
Show Gist options
  • Save DeskWOW/6521e9c723884ec8ceb4 to your computer and use it in GitHub Desktop.
Save DeskWOW/6521e9c723884ec8ceb4 to your computer and use it in GitHub Desktop.
if (hashedContext === b64Hash) {
res.sendFile(path.join(views, 'index.html'));
} else {
res.send("authentication failed");
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment