Skip to content

Commit cf81444

Browse files
authored
chore: explicit third parameter to decode function in README
1 parent bc0df64 commit cf81444

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ $payload = array(
4343
* https://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-40
4444
* for a list of spec-compliant algorithms.
4545
*/
46-
$jwt = JWT::encode($payload, $key);
46+
$jwt = JWT::encode($payload, $key, 'HS256');
4747
$decoded = JWT::decode($jwt, new Key($key, 'HS256'));
4848

4949
print_r($decoded);

0 commit comments

Comments
 (0)