bearerToken()) && $request->isJson()) { $request->session()->getHandler()->destroy( $request->session()->getId() ); $response->headers->remove('Set-Cookie'); } return $response; } }