You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #11888 Fixed subscribe JWT claim parameter (dekamaru)
This PR was submitted for the 4.3 branch but it was merged into the 4.2 branch instead (closes#11888).
Discussion
----------
Fixed subscribe JWT claim parameter
If you follow current guide and set claim mercure `subscribe` with single string - you get following error from mercure: `json: cannot unmarshal string into Go struct field mercureClaim.subscribe of type []string`
Subscribe parameter is array, not single string.
You can verfiy it by decoding JWT in these official examples:
1. https://github.com/dunglas/mercure/blob/master/examples/publisher-php.php
2. https://github.com/dunglas/mercure/blob/master/hub/authorization_test.go
Commits
-------
c089b6e Fixed subscribe claim parameter set
0 commit comments