FIX_AUTHJWT : AADHAVAN

This commit is contained in:
aadhavan valli 2024-04-01 11:13:01 +05:30
parent f5dae66ffd
commit eb91ef3814

View File

@ -18,15 +18,7 @@ class AuthJWT implements FilterInterface
{ {
public function before(RequestInterface $request, $arguments = null) public function before(RequestInterface $request, $arguments = null)
{ {
$jwt = $request->getHeader('Authorization');
$jwt ='';
if($request->headers()['Auth']){
$jwt = $request->headers()['Auth'];
}else{
$jwt = $request->getHeader('Authorization');
}
if ($jwt) { if ($jwt) {
if (JWTToken::validateJWT($jwt)) { if (JWTToken::validateJWT($jwt)) {