I am trying to create a reset password form and use the Accounts.resetPassword method on the client to do it. Every time i try to change the password, it says that the token has expired, no matter how much time has passed.
this.token contains the token
this.password contains the new password
Accounts.resetPassword(this.token, this.password, error => {
if (error) {
console.log(error);
this.error = error.reason;
this.hasError = true;
} else {
this.passwordReset = true;
}
})