NuxtN
Nuxt3y ago
Joni

How to navigate inside pinia store?

After I received my token from the backend I want to navigate the user to
/
, unfortunately navigateTo("/") doesnt work
LOGIN(_username: string, _password: string): void {
      console.info("Logging in with", _username, _password)
      this.username = _username;

      this.token = "Bearer Tokenasd asdasd asd"

      navigateTo("/")
    }
Was this page helpful?