Skip to content

Commit c059c95

Browse files
Merge pull request #358 from opentok/minor-docs-edits
Minor docs edits to legacy T1 token option
2 parents 4a433ae + db16fb7 commit c059c95

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/OpenTok/OpenTok.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ public function __construct($apiKey, $apiSecret, $options = array())
131131
*
132132
* </ul>
133133
*
134-
* @param bool $legacy By default, OpenTok uses SHA256 JWTs for authentication. Switching
135-
* legacy to true will create a T1 token for backwards compatibility.
134+
* @param bool $legacy Connection tokens are now SHA-256 signed JWTs.
135+
* Set this to <code>true</code> to create a token using the legacy T1 format.
136136
*
137137
* @return string The token string.
138138
*/

src/OpenTok/Session.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ public function __toString()
152152
*
153153
* </ul>
154154
*
155+
* @param bool $legacy Connection tokens are now SHA-256 signed JWTs.
156+
* Set this to <code>true</code> to create a token using the legacy T1 format.
157+
*
155158
* @return string The token string.
156159
*/
157160
public function generateToken($options = array(), bool $legacy = false)

0 commit comments

Comments
 (0)