Skip to content

Instantly share code, notes, and snippets.

@rahatarmanahmed
Forked from zackurben/gist:92c9d4afa29f2a45c7e1
Created September 18, 2015 15:19
Show Gist options
  • Save rahatarmanahmed/54ca5dcac557e82fdf2b to your computer and use it in GitHub Desktop.
Save rahatarmanahmed/54ca5dcac557e82fdf2b to your computer and use it in GitHub Desktop.
Authentication Example.
var request = require('request');
request.post(
'https://formio.form.io/user/login/submission',
{
data: {
'user.email': email,
'user.password': password
}
},
function (error, response, body) {
if (!error && response.statusCode == 200) {
token = res.headers['x-jwt-token'];
}
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment