async def exchange_code_for_whitelabel(
        code: str,
        white_label: schemas.WhiteLabel,
    ) -> OAuth2TokenResponse:
        """Exchange OAuth2 authorization code for tokens using white label credentials.

        Args:
        ----
            code: The authorization code to exchange
            white_label: The white label configuration to use

        Returns:
        -------
            OAuth2TokenResponse: The response containing the access token and other token details.

        Raises:
        ------
            NotFoundException: If the integration is not found
        """
        integration_config = await integration_settings.get_by_short_name(
            white_label.source_short_name
        )
        if not integration_config:
            raise NotFoundException(f"Integration {white_label.source_short_name} not found.")

        logger.info(f"Exchanging code for white label: {white_label.source_short_name}")
        logger.info(f"Client ID: {white_label.client_id}")
        return await OAuth2Service._exchange_code(
            code=code,
            redirect_uri=white_label.redirect_url,
            client_id=white_label.client_id,
            client_secret=white_label.client_secret,
            integration_config=integration_config,
        )
Exchange OAuth2 authorization code for tokens using white label credentials.

        Args:
        ----
            code: The authorization code to exchange
            white_label: The white label configuration to use

        Returns:
        -------
            OAuth2TokenResponse: The response containing the access token and other token details.

        Raises:
        ------
            NotFoundException: If the integration is not found
        
backend/airweave/platform/auth/services.py