src/Service/AuthService.php
public function createSession(string $token): ?SessionInterface
    {
        try {
            $response = $this->client->signedCall('auth.getSession', [
                'token' => $token,
            ]);

            return new Session($response['session']['name'], $response['session']['key'], $response['session']['subscriber']);
        } catch (ApiException $e) {
            $this->logger->warning(sprintf('Error getting session for "%s" token.', $token), [
                'exception' => $e,
            ]);
        } catch (NotFoundException $e) {
            $this->logger->info(sprintf('No session was found for "%s" token.', $token), [
                'exception' => $e,
            ]);
        }

        return null;
    }
public function createSession(string $token): ?SessionInterface
    {
        try {
            $response = $this->client->signedCall('auth.getSession', [
                'token' => $token,
            ]);

            return new Session($response['session']['name'], $response['session']['key'], $response['session']['subscriber']);
        } catch (ApiException $e) {
            $this->logger->warning(sprintf('Error getting session for "%s" token.', $token), [
                'exception' => $e,
            ]);
        } catch (NotFoundException $e) {
            $this->logger->info(sprintf('No session was found for "%s" token.', $token), [
                'exception' => $e,
            ]);
        }

        return null;
    }
{@inheritdoc}