authlify-js
Advanced tools
Comparing version 0.2.3 to 0.3.0
@@ -40,6 +40,6 @@ 'use strict'; | ||
key: 'signup', | ||
value: function signup(email, password) { | ||
value: function signup(email, password, data) { | ||
return this.api.request('/signup', { | ||
method: 'POST', | ||
body: JSON.stringify({ email: email, password: password }) | ||
body: JSON.stringify({ email: email, password: password, data: data }) | ||
}); | ||
@@ -55,3 +55,3 @@ } | ||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, | ||
body: 'grant_type=password&username=' + email + '&password=' + password | ||
body: 'grant_type=password&username=' + encodeURIComponent(email) + '&password=' + encodeURIComponent(password) | ||
}).then(function (response) { | ||
@@ -58,0 +58,0 @@ return new _user2.default(_this.api, response).reload(); |
{ | ||
"name": "authlify-js", | ||
"version": "0.2.3", | ||
"version": "0.3.0", | ||
"description": "Authlify API client for JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11042