- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2022
04:54 PM
02-04-2022
04:54 PM
How to return web url with Auth token
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; }
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-23-2022
07:50 PM
02-23-2022
07:50 PM
Re: How to return web url with Auth token
Nice,
If you want to know more Magento, take a tour the blog site of Landofcoder.
Thanks