Skip to content

Commit c8880ba

Browse files
committed
JWT now needs algorithm
1 parent 2dee119 commit c8880ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/OpenTok/Util/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private function createAuthHeader()
108108
'exp' => time() + (5 * 60),
109109
'jti' => uniqid(),
110110
);
111-
return JWT::encode($token, $this->apiSecret);
111+
return JWT::encode($token, $this->apiSecret, 'HS256');
112112
}
113113

114114
// General API Requests

0 commit comments

Comments
 (0)