accountkit-server
Advanced tools
Comparing version 0.45.1 to 0.45.2
10
index.js
@@ -29,3 +29,7 @@ var Request = require('request'); | ||
}, | ||
getInfoEndpoint: function() { | ||
getInfoEndpoint: function(me_fields) { | ||
if (me_fields) { | ||
return base_url + api_version + "/me" + "?fields=" + me_fields.join(','); | ||
} | ||
return base_url + api_version + "/me"; | ||
@@ -39,3 +43,3 @@ }, | ||
}, | ||
getAccountInfo: function(authorization_code) { | ||
getAccountInfo: function(authorization_code, me_fields) { | ||
return new Promise(function (resolve, reject) { | ||
@@ -68,3 +72,3 @@ var self = this; | ||
var me_endpoint_url = self.getInfoEndpoint() + '?access_token=' + respBody.access_token; | ||
var me_endpoint_url = self.getInfoEndpoint(me_fields) + '?access_token=' + respBody.access_token; | ||
var token = respBody.access_token; | ||
@@ -71,0 +75,0 @@ |
{ | ||
"name": "accountkit-server", | ||
"version": "0.45.1", | ||
"version": "0.45.2", | ||
"description": "Promise based server side handling for Facebook AccountKit", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -128,3 +128,3 @@ # accountkit-server | ||
|----------------|---------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------|---------| | ||
| getAccountInfo | authorizationCode: String | Returns the user from the auth code sent from the client. This information can be used to create a new User in the database. | Promise | | ||
| getAccountInfo | authorizationCode: String, me_fields: Array | Returns the user from the auth code sent from the client. This information can be used to create a new User in the database. | Promise | | ||
| removeUser | id: String | Removed the user from AccountKit via the identifier given from getAccountInfo | Promise | | ||
@@ -131,0 +131,0 @@ | configure | id: String, secret: String, version: Strign | Configures the AccountKit kit app with the provided information | Null | | | | |
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
20270
113