Instantly share code, notes, and snippets.

@whtswrng /.js
Last active Nov 8, 2018

Embed
What would you like to do?
function login(requestBody) {
return requestPromise.post({
uri: `${API_BASE_URL}/api/new/cool/auth?${requestBody.formQuery}&random="value"`,
body: {somethingNew: requestBody.newStaff, username: requestBody.username},
json: true,
resolveWithFullResponse: true,
simple: false,
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment