Home  >  Q&A  >  body text

javascript - Problems with setting token expiration time in node.js background

1. Background check login code

2. When the front end is logged in, the error "is not allowed" is reported. What does this error mean and how to solve it?

PHP中文网PHP中文网2704 days ago615

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-05-24 11:40:41

    Please change it to this
    expiresIn: 60 * 60 * 24 //The unit is s

    reply
    0
  • Cancelreply