Skip to content

Commit e3b9239

Browse files
committed
Merge branch '4.4'
* 4.4: Fixed subscribe claim parameter set
2 parents 1b0c13e + 5c44ff1 commit e3b9239

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mercure.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ And here is the controller::
400400
$username = $this->getUser()->getUsername(); // Retrieve the username of the current user
401401
$token = (new Builder())
402402
// set other appropriate JWT claims, such as an expiration date
403-
->set('mercure', ['subscribe' => "http://example.com/user/$username"]) // could also include the security roles, or anything else
403+
->set('mercure', ['subscribe' => ["http://example.com/user/$username"]]) // could also include the security roles, or anything else
404404
->sign(new Sha256(), $this->getParameter('mercure_secret_key')) // don't forget to set this parameter! Test value: aVerySecretKey
405405
->getToken();
406406

0 commit comments

Comments
 (0)