Skip to content

Commit 082a66b

Browse files
committed
This is more correct according to the spec.
1 parent 6fc8c26 commit 082a66b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JWT.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static function decode($jwt, $key = null, $verify = true)
5353
*/
5454
public static function encode($payload, $key, $algo = 'HS256')
5555
{
56-
$header = array('typ' => 'jwt', 'alg' => $algo);
56+
$header = array('typ' => 'JWT', 'alg' => $algo);
5757

5858
$segments = array();
5959
$segments[] = JWT::urlsafeB64Encode(JWT::jsonEncode($header));

0 commit comments

Comments
 (0)