Helper/Config.php
private function getRegionAuthorize($website)
    {
        $website = $this->storeManager->getWebsite($website);

        $apiEndpoint = $this->getWebsiteConfig(self::PATH_FOR_API_ENDPOINT, $website) . '/';
        //replace the api with the app prefix from the domain name
        $regionBaseUrl = str_replace('api', 'app', $apiEndpoint);

        return $regionBaseUrl;
    }
private function getRegionAuthorize($website)
    {
        $website = $this->storeManager->getWebsite($website);

        $apiEndpoint = $this->getWebsiteConfig(self::PATH_FOR_API_ENDPOINT, $website) . '/';
        //replace the api with the app prefix from the domain name
        $regionBaseUrl = str_replace('api', 'app', $apiEndpoint);

        return $regionBaseUrl;
    }
private function getRegionAuthorize ( $ website ) { $ website = $ this -> storeManager -> getWebsite ( $ website ) ; $ apiEndpoint = $ this -> getWebsiteConfig ( self :: PATH_FOR_API_ENDPOINT , $ website ) . '/' ; //replace the api with the app prefix from the domain name $ regionBaseUrl = str_replace ( 'api' , 'app' , $ apiEndpoint ) ; return $ regionBaseUrl ; }
Region aware authorize link.

@param \Magento\Store\Api\Data\WebsiteInterface|int $website

@return string|array
Region aware authorize link .