diff --git a/types/auth0-js/auth0-js-tests.ts b/types/auth0-js/auth0-js-tests.ts index 5356dc605a..73426dbd37 100644 --- a/types/auth0-js/auth0-js-tests.ts +++ b/types/auth0-js/auth0-js-tests.ts @@ -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) { }); diff --git a/types/auth0-js/index.d.ts b/types/auth0-js/index.d.ts index 4e6afded1d..37914e887f 100644 --- a/types/auth0-js/index.d.ts +++ b/types/auth0-js/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for Auth0.js 8.6 // Project: https://github.com/auth0/auth0.js // Definitions by: Adrian Chia +// Matt Durrant // 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 {