Skip to content

Instantly share code, notes, and snippets.

View msmyers's full-sized avatar

Michael Smyers msmyers

View GitHub Profile

My Facebook Shenanigans

This is a continuation of a conversation between Andrew Fine and Michael Smyers.

Foreward

Alright dude. I'll respect you by researching and responding. Please respect me by reading it.

No lengthy response necessary. You're welcome to respond, I do not expect it.

/**
* @param {Express.Request} request
* @param {Express.Response} response
*/
async testRecaptcha(request, response) {
/** @type {String} */
const captcha = request.allParams().recaptchaToken;
// check assumptions, or crash
Preconditions.shouldBeNonBlankString(captcha, 'missing: params.recaptchaToken');