我可以在 Meteor 的 simple:rest-accounts-password 包中禁用令牌过期吗?

Can I disable the token expiration within the simple:rest-accounts-password package in Meteor?

有没有办法在 Meteor 的 simple:rest-accounts-password 包中禁用令牌过期?我发现在 Meteor 1.4 之前没有附加过期。降级可能是一种解决方案,但我想知道这个问题是否有任何替代方案,因为我认为我不是唯一一个遇到这个问题的人 运行。

我正在为 Meteor 使用这个包:https://atmospherejs.com/simple/rest-accounts-password

提前致谢!

server 目录中,在名为 main.js 的文件中,添加以下代码;

Accounts.config({
  loginExpirationInDays: 1 // any duration that you desire
});

据我所知,禁用是不可能的,不过您可以延迟到期。