Do you want to give the possibility to your customer to sign out directly with a link from the My Account navigation menu? Is as simple as that. Let’s go and see together how you can do it!
Create a customer_account.xml file under your theme directory /app/design/frontend/<Vendor>/<theme>/Magento_Customer/layout/ and add the following code.
Clean Magento Cache, Sign In and navigate to the My Account. At the bottom of the Navigation menu, you have to see the Sign Out link as in the screen below.
Feel free to share this post and ask your questions in the comments below.
Dev is CEO & Founder of Horeb eCommerce who loves technical writing and sharing the most popular trends in e-commerce. when he is not in work he loves to travel and explore new places.