This commit is contained in:
AJ ONeal 2018-06-21 15:01:31 -06:00
parent c79e57a335
commit 6f88490abe
1 changed files with 13 additions and 9 deletions

View File

@ -11,16 +11,16 @@ var req = {
, method: 'POST' , method: 'POST'
, headers: { 'cOntEnt-tYpE': 'application/json;charset=utf-8' } , headers: { 'cOntEnt-tYpE': 'application/json;charset=utf-8' }
, json: { , json: {
subject: email subject: email
, subject_scheme: 'mailto' , subject_scheme: 'mailto'
, scope: '' , scope: ''
, otp: pin , otp: pin
, hostname: "User's Macbook Pro" , hostname: "User's Macbook Pro"
, os_type: 'Linux' , os_type: 'Linux'
, os_platform: 'linux' , os_platform: 'linux'
, os_release: '4.4.0-116-generic' , os_release: '4.4.0-116-generic'
, os_arch: 'x64' , os_arch: 'x64'
} }
}; };
urequest(req, function (err, resp, body) { urequest(req, function (err, resp, body) {
if (err) { if (err) {
@ -30,4 +30,8 @@ urequest(req, function (err, resp, body) {
console.log('Location:', resp.headers.location); console.log('Location:', resp.headers.location);
console.log('Body:'); console.log('Body:');
console.log(body); console.log(body);
/*
{ jwt: '...'
}
*/
}); });