summaryrefslogtreecommitdiffstats
path: root/Authentication/JWT.php
diff options
context:
space:
mode:
Diffstat (limited to 'Authentication/JWT.php')
-rw-r--r--Authentication/JWT.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/Authentication/JWT.php b/Authentication/JWT.php
index 9c37539..6efa30d 100644
--- a/Authentication/JWT.php
+++ b/Authentication/JWT.php
@@ -132,7 +132,7 @@ class JWT
$header['kid'] = $keyId;
}
if ( isset($head) && is_array($head) ) {
- array_push($header, $head);
+ array_push($header, array_values($head));
}
$segments = array();
$segments[] = JWT::urlsafeB64Encode(JWT::jsonEncode($header));