How to detect jwt token expire on React

前端 未结 0 1961
执笔经年
执笔经年 2020-12-08 12:41

With the backend node.js, I have created a JWT token with a expire time:

signToken = (user) => {
    return jwt.sign({ id: user.userId }, process.env.JWT_S         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题