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 4dd8301 commit 9ff5c45Copy full SHA for 9ff5c45
src/JwtValidateMiddleware.php
@@ -74,9 +74,15 @@ protected function parseAuthorizationHeader($header)
74
return $decodedParts[1];
75
}
76
77
+ if (strpos($header, "Bearer") === 0) {
78
+ list($tokenString) = sscanf($header, "Bearer %s");
79
+
80
+ return base64_decode($tokenString);
81
+ }
82
83
// Otherwise we expect the token to be specific directly (not encoded) with the "Token" label
84
list($tokenString) = sscanf($header, "Token %s");
85
86
return $tokenString;
87
-}
88
+}
0 commit comments