Skip to content

Commit

Permalink
Merge pull request #1 from asheliahut/asheliahut-patch-1
Browse files Browse the repository at this point in the history
Update jwtTokenGenerator.js
  • Loading branch information
asheliahut committed Feb 13, 2020
2 parents 7c76f01 + 00ad551 commit 4f493bb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions jwtTokenGenerator.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ module.exports.templateTags = [{
type: 'string',
},
{
displayName: 'email',
description: 'email',
displayName: '_email',
description: '_email',
type: 'string',
},
{
Expand All @@ -21,13 +21,13 @@ module.exports.templateTags = [{
type: 'string',
},
],
async run (context, url, email, _password) {
async run (context, url, _email, _password) {
const data = {
'email': email,
'email': _email,
'password': _password,
}
let token = ''
await axios.post(url, data)
await axios.post(url, JSON.stringify(data))
.then((response) => {
token = response.data.token
return token
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
}
],
"license": "MIT",
"version": "1.0.3",
"version": "1.0.4",
"private": false,
"repository": {
"type": "git",
Expand Down

0 comments on commit 4f493bb

Please sign in to comment.