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