From cbdce7fb10d4396810a6068767da25eb80c33623 Mon Sep 17 00:00:00 2001 From: Ryan Burr Date: Fri, 26 Apr 2019 14:13:57 -0400 Subject: [PATCH] [@types/auth0-js] remove password from ChangePasswordOptions (#34947) - This option is not used by the Auth0.js 9.10 library - Changing password through the API is a deprecated workflow - This is a BREAKING CHANGE since it removes a property --- types/auth0-js/auth0-js-tests.ts | 5 ++--- types/auth0-js/index.d.ts | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/types/auth0-js/auth0-js-tests.ts b/types/auth0-js/auth0-js-tests.ts index 61ab9bd524..af16332b8d 100644 --- a/types/auth0-js/auth0-js-tests.ts +++ b/types/auth0-js/auth0-js-tests.ts @@ -126,8 +126,7 @@ webAuth.renewAuth({ }, (err, authResult) => {}); webAuth.changePassword({connection: 'the_connection', - email: 'me@example.com', - password: '123456' + email: 'me@example.com' }, (err) => {}); webAuth.passwordlessStart({ @@ -250,7 +249,7 @@ authentication.getSSOData(); authentication.getSSOData(true, (err, data) => {}); authentication.dbConnection.signup({connection: 'bla', email: 'blabla', password: '123456'}, () => {}); -authentication.dbConnection.changePassword({connection: 'bla', email: 'blabla', password: '123456'}, () => {}); +authentication.dbConnection.changePassword({connection: 'bla', email: 'blabla'}, () => {}); authentication.passwordless.start({ connection: 'bla', send: 'blabla' }, () => {}); authentication.passwordless.verify({ connection: 'bla', verificationCode: 'asdfasd', email: 'me@example.com' }, () => {}); diff --git a/types/auth0-js/index.d.ts b/types/auth0-js/index.d.ts index 68744e9ff0..43d606c6f3 100644 --- a/types/auth0-js/index.d.ts +++ b/types/auth0-js/index.d.ts @@ -616,7 +616,6 @@ export interface Auth0DelegationToken { export interface ChangePasswordOptions { connection: string; email: string; - password?: string; } export interface PasswordlessStartOptions {