Add missing types
This commit is contained in:
parent
36540a99b9
commit
e5b1cff237
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ export default class PasswordReset {
|
||||||
* @param {string} newPassword The new password for the account.
|
* @param {string} newPassword The new password for the account.
|
||||||
* @return {Promise} Resolves when the email has been sent. Then call checkEmailLinkClicked().
|
* @return {Promise} Resolves when the email has been sent. Then call checkEmailLinkClicked().
|
||||||
*/
|
*/
|
||||||
public resetPassword(emailAddress, newPassword): Promise<IRequestTokenResponse> {
|
public resetPassword(emailAddress: string, newPassword: string): Promise<IRequestTokenResponse> {
|
||||||
this.password = newPassword;
|
this.password = newPassword;
|
||||||
return this.client.requestPasswordEmailToken(emailAddress, this.clientSecret, 1).then((res) => {
|
return this.client.requestPasswordEmailToken(emailAddress, this.clientSecret, 1).then((res) => {
|
||||||
this.sessionId = res.sid;
|
this.sessionId = res.sid;
|
||||||
|
|
Loading…
Reference in a new issue