'Maintaining login session in vue-cli

I'm building a web app in which there is a login page. When i try to refresh or go back to previous page the app wants me to login again. Is there a way to solve that problem?



Solution 1:[1]

Here, Is the little update! I think you can do more better by exploring documentation

<div class="h-screen mx-auto bg-red-500 grid grid-cols-12 gap-8 overflow-hidden">
  <div class="col-span-12 col-start-8">
    <img class="object-cover h-full w-full" src="https://images.unsplash.com/photo-1640686708297-e6dc01470fb8?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1740&q=80" alt="" />
  </div>
</div>

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1