Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

accountkit-server

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

accountkit-server - npm Package Compare versions

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 | | | |

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc