Skip to content

feat(server): add configurable token expiration

Jure requested to merge configure_expiry into master

You can now configure the time a token expires in by using the pubsweet-server.tokenExpiresIn configuration option. In addition to seconds (if tokenExpiresIn is an integer), you can also specify the expiry time in friendly string options, such as tokenExpiresIn: "2 days" For more information about available values, see https://github.com/zeit/ms.

Closes #427 (closed)

Merge request reports