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

auth0

Package Overview
Dependencies
Maintainers
3
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auth0 - npm Package Compare versions

Comparing version 0.3.1 to 0.4.0

4

lib/api.js

@@ -239,7 +239,7 @@ var request = require('request');

var options = {
url: this.apiUrl + '/users/' + userId,
url: this.apiUrl + '/users/' + userId + '/metadata',
headers: {
'Authorization': 'Bearer ' + accessToken,
},
json: {metadata: metadata},
json: metadata,
};

@@ -246,0 +246,0 @@

{
"name": "auth0",
"version": "0.3.1",
"version": "0.4.0",
"description": "Client library for the Auth0 platform",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -116,2 +116,30 @@ Node.js client library for the Auth0 platform.

### api.createUser(userData, callback)
Creates a new user. `userData` is an object that must contain the following mandatory fields:
* email: User's email
* password: User's password
* connection: The name of the connection where to create the user.
Also, custom fields can be added with more information about the user.
```js
var newUser = {
email: 'john@doe.com',
password: 'somepass',
connection: 'mydb',
/* custom field */
favoriteColor: 'red'
};
api.createUser(newUser, function (err, userInfo) {
if (err) {
console.log('Error creating user: ' + err);
return;
}
console.log('User favorite color: ' + userInfo.favoriteColor);
});
```
### api.updateUserMetadata(userId, metadata, callback)

@@ -118,0 +146,0 @@

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