Subscribe user with token #604
Unanswered
ArensMyzyri
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Can you share the topic you use (the string) and as well as the JWT? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi.
I have read through documentation and hitting a wall on understanding how to authenticate a subscriber to subscribe to a private topic.
Here my PHP part:
The problem I have and that I can't understand is how can I add a token to this topic?
How to make it so the front end can subscribe if has this token.
I see no option above to create/update a topic with a dynamic token which the front end client can use together with the topic to subscribe.
Ex:
https://localhost/.well-known/mercure?topic=myTopicName
Authorization: "Bearer SomeToken"
Please let me know if I'm missing something.
Beta Was this translation helpful? Give feedback.
All reactions