So I have an Api Platform application with JWT authentication using LexikJWTAuthenticatorBundle. So my users already have a JWT used to authenticate. Can I somehow use this same JWT to authenticate them for private updates on the Mercure hub?
I am not sure how to configure Mercure to use the private/public keys that are using by Lexik:
mercure:
image: dunglas/mercure
environment:
- ALLOW_ANONYMOUS=1
- CORS_ALLOWED_ORIGINS=http://localhost:8080
- DEMO=1
- JWT_KEY=???
- JWT_ALGORITHM=RS256
- PUBLISH_ALLOWED_ORIGINS=http://localhost:180