我已经设置了使用OAuth2处理Gmail的Nodemailer。它可以正常工作,直到访问令牌过期为止。此时,尽管有一个刷新令牌,但我得到了以下错误消息: Error: Invalid status code 401
at ClientRequest.req.on.res (我还尝试在初始nodemailer设置中包括刷新令牌和访问令牌,以及包含过期日
我的Django REST应用程序和JWT身份验证模块()在刷新令牌阶段有问题。刷新令牌的默认逻辑是non-expired tokens can be "refreshed" to obtain a brand new token with renewed expiration time过期时间设置为。
JWT框架提供了一个用于刷新令牌的API,您应该使用它来获得新的令牌,因此过期时间重置web应用程序</