We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc0df64 commit cf81444Copy full SHA for cf81444
README.md
@@ -43,7 +43,7 @@ $payload = array(
43
* https://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-40
44
* for a list of spec-compliant algorithms.
45
*/
46
-$jwt = JWT::encode($payload, $key);
+$jwt = JWT::encode($payload, $key, 'HS256');
47
$decoded = JWT::decode($jwt, new Key($key, 'HS256'));
48
49
print_r($decoded);
0 commit comments