getHeader('Authorization'); if ($header && str_starts_with($header, 'Bearer ')) { return substr($header, 7); } return null; } }