[@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
This commit is contained in:
Ryan Burr
2019-04-26 11:13:57 -07:00
committed by Pranav Senthilnathan
parent 683acf2d34
commit cbdce7fb10
2 changed files with 2 additions and 4 deletions
+2 -3
View File
@@ -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' }, () => {});
-1
View File
@@ -616,7 +616,6 @@ export interface Auth0DelegationToken {
export interface ChangePasswordOptions {
connection: string;
email: string;
password?: string;
}
export interface PasswordlessStartOptions {