Skip to content

Commit c8e1b4d

Browse files
committed
Merge pull request #1 from progrium/patch-1
Spec says to uppercase JWT for typ
2 parents 6fc8c26 + 082a66b commit c8e1b4d

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)