Skip to content

Commit

Permalink
always use connect as default subject
Browse files Browse the repository at this point in the history
  • Loading branch information
svenpaulsen authored Jun 7, 2023
1 parent aea7350 commit a74ef18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TokenGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function createToken($roomId, $userId, $options = array())
"rid" => $roomId,
"uid" => strval($userId),
"cid" => isset($options["customer"]) ? strval($options["customer"]) : null,
"sub" => isset($options["audience"]) && $options["audience"] == "sfu" ? "login" : "connect",
"sub" => isset($options["subjects"]) ? $options["subjects"] : "connect",
"aud" => isset($options["audience"]) ? strval($options["audience"]) : null,
"exp" => time() + (isset($options["lifetime"]) ? intval($options["lifetime"]) : 300),
"nbf" => time(),
Expand All @@ -63,7 +63,7 @@ public function createToken($roomId, $userId, $options = array())


/**
* Encodes data with MIME base64 in an URL-safe variant.
* Encodes data with MIME base64 in an URL-safe variant.
*
* @param string $data
* @return string
Expand Down

0 comments on commit a74ef18

Please sign in to comment.