Hi, I am implementing the login module and I need to return the url of the website linked to the token. Example. www.appsite.app/authtoken. However, I want to know if the way I did it is correct and follows magento best practices.
public function returnUrlLogin($tokenKey) { $urlWithToken = $this->storeManager->getStore()->getBaseUrl(\Magento\Framework\UrlInterface::URL_TYPE_WEB) . "loginauth/?token=" . $tokenKey; return $urlWithToken; }
Nice,
If you want to know more Magento, take a tour the blog site of Landofcoder.
Thanks