-
-
Save zackurben/92c9d4afa29f2a45c7e1 to your computer and use it in GitHub Desktop.
Authentication Example.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
request.post( | |
'https://formio.form.io/api/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