Skip to content

Update mercure.rst #12607

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 9, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mercure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand All @@ -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!
Expand Down