From cd746234505741f9ddbf3243ffed74f99cb20335 Mon Sep 17 00:00:00 2001 From: Guillaume Ponty <34276317+gponty@users.noreply.github.com> Date: Fri, 8 Nov 2019 16:34:41 +0100 Subject: [PATCH] Update mercure.rst Just replace MERCURE_JWT_SECRET by MERCURE_JWT_TOKEN. --- mercure.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mercure.rst b/mercure.rst index 92f59d03811..ad54a5ebde9 100644 --- a/mercure.rst +++ b/mercure.rst @@ -99,7 +99,7 @@ Set it to the URL of the Mercure Hub (``http://localhost:3000/hub`` by default). In addition, the Symfony application must bear a `JSON Web Token`_ (JWT) to the Mercure Hub to be authorized to publish updates. -This JWT should be stored in the ``MERCURE_JWT_SECRET`` environment variable. +This JWT should be stored in the ``MERCURE_JWT_TOKEN`` environment variable. The JWT must be signed with the same secret key as the one used by the Hub to verify the JWT (``aVerySecretKey`` in our example). @@ -126,7 +126,7 @@ public updates (see the authorization_ section for further information). .. caution:: - Don't put the secret key in ``MERCURE_JWT_SECRET``, it will not work! + Don't put the secret key in ``MERCURE_JWT_TOKEN``, it will not work! This environment variable must contain a JWT, signed with the secret key. Also, be sure to keep both the secret key and the JWTs... secrets!