auth0: Added support for optional user_metadata field in signup

This commit is contained in:
mdurrant
2017-08-20 07:15:31 -06:00
parent 44a9d083d4
commit e9b708a8d2
2 changed files with 6 additions and 1 deletions

View File

@@ -130,7 +130,10 @@ webAuth.signupAndAuthorize({
connection: 'the_connection',
email: 'me@example.com',
password: '123456',
scope: 'openid'
scope: 'openid',
user_metadata: {
foo: 'bar'
}
}, function (err, data) {
});

View File

@@ -1,6 +1,7 @@
// Type definitions for Auth0.js 8.6
// Project: https://github.com/auth0/auth0.js
// Definitions by: Adrian Chia <https://github.com/adrianchia>
// Matt Durrant <https://github.com/mdurrant>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export as namespace auth0;
@@ -624,6 +625,7 @@ interface DbSignUpOptions {
password: string;
connection: string;
scope?: string;
user_metadata?: any;
}
interface ParseHashOptions {