public static function getValidToken(
        ContextInterface $context,
        AccessToken $token = null,
        array $scopes = null,
        array $options = []
    ): AccessToken
	{
		if ($token === null || !$token->isValid()) {
            $token = AuthenticationHelper::getAccessToken($context, $scopes, $options);
		}

		return $token;
	}