Configuring Token Lifetime in edna Chat Center

Add the following parameters in the edna Chat Center application settings in the .properties file to configure token lifetime on a server:

  1. token.jwt.secret = <secret signing key>: Each token must be signed with a secret key (for more details, refer here). In this case, HS512 encryption is used for signing. The line with the secret key must contain 512 bits (~ 64 characters).
  2. token.jwt.validityInSeconds = <token lifetime in seconds>: Token lifetime. Once it expires, the token becomes invalid and you need to request a new one for the user (re-authorize). All requests with the old token will return the 401 status code.
In this article