This commit is contained in:
parent
c79e57a335
commit
6f88490abe
|
@ -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: '...'
|
||||||
|
}
|
||||||
|
*/
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue