React native 密码重置时令牌已过期

React native 密码重置时令牌已过期,react-native,meteor,React Native,Meteor,methods.js(服务器端) resetPin:函数(回调){ 让user=Meteor.users.findOne({用户名:“8390883758”}); let data=Accounts.sendResetPasswordEmail(用户id); 让token=user.services.password.reset.token; 返回令牌; } ForgotPin.js(客户端) 按下按钮时 changePin=()=>{ Meteor.call(“resetPin”,(err,

methods.js(服务器端)

resetPin:函数(回调){
让user=Meteor.users.findOne({用户名:“8390883758”});
let data=Accounts.sendResetPasswordEmail(用户id);
让token=user.services.password.reset.token;
返回令牌;
}
ForgotPin.js(客户端) 按下按钮时

changePin=()=>{
Meteor.call(“resetPin”,(err,tkn)=>{
控制台日志(tkn);
if(err)console.log(err);
否则{
Accounts.resetPassword(tkn,“123456”,err=>{
if(err)console.log(err);
否则{
控制台日志(“密码重置完成”);
}
});
}
});
}
预期产出-

密码重置成功

实际输出-

{
是的,
错误:403,
原因:“令牌已过期”,
消息:“令牌已过期[403]”,
errorType:“流星。错误”
}
版本

流星-1.5.1 节点-9.5.0 反应本机-^0.47.1 帐户密码-1.4.0 流星基地-1.1.0
如果要从登录到终端的电子邮件复制重置密码链接,则需要删除第一行末尾的
=


在本例中,完全重置密码URL将为
http://localhost:3005/reset-密码/Yp1gp3gUMgNPfozpoxc\u S4SIy4v3BTOLl1gYsv\u pirG

如何将从
resetPin
生成的
tkn
绑定到
resetPassword
,你能发布完整的模块吗?