Skip to content

Commit cd74623

Browse files
authored
Update mercure.rst
Just replace MERCURE_JWT_SECRET by MERCURE_JWT_TOKEN.
1 parent 8945448 commit cd74623

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mercure.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Set it to the URL of the Mercure Hub (``http://localhost:3000/hub`` by default).
9999
In addition, the Symfony application must bear a `JSON Web Token`_ (JWT)
100100
to the Mercure Hub to be authorized to publish updates.
101101

102-
This JWT should be stored in the ``MERCURE_JWT_SECRET`` environment variable.
102+
This JWT should be stored in the ``MERCURE_JWT_TOKEN`` environment variable.
103103

104104
The JWT must be signed with the same secret key as the one used by
105105
the Hub to verify the JWT (``aVerySecretKey`` in our example).
@@ -126,7 +126,7 @@ public updates (see the authorization_ section for further information).
126126

127127
.. caution::
128128

129-
Don't put the secret key in ``MERCURE_JWT_SECRET``, it will not work!
129+
Don't put the secret key in ``MERCURE_JWT_TOKEN``, it will not work!
130130
This environment variable must contain a JWT, signed with the secret key.
131131

132132
Also, be sure to keep both the secret key and the JWTs... secrets!

0 commit comments

Comments
 (0)