To change JWT secret you need to specify it in a few configs. I’ve described in which ones here:
It references on how to do it for Docker, but in case of package installation you can simply skip steps of connecting to the containers and move to the configs directly on host.