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 a8a960a commit 8471e68Copy full SHA for 8471e68
decode-header.php
@@ -12,7 +12,8 @@
12
}
13
14
$token = $headers["Authorization"];
15
-$token = str_replace("Bearer ", "", $token); // or remove 'Bearer ' from first of letters!
+// Remove "Bearer " at first of TOKEN
16
+$token = substr($a, 7)); // strlen("Bearer ") = 7
17
18
try {
19
$decode = JWT::decode($token, $key, array('HS256'));
0 commit comments