title: Nuxt Auth Module - Multiple redirect options after logout
body: <p>I have a website where the user logs in and then gets access to a dashboard. The user can log in and out from their dashboard as well as from the home page. Now I want that when the user logs out from the dashboard, he gets directed to a different page than when he logs out from the home page. Is this somehow possible with the <code>auth</code> module in Nuxt? I haven't found a way so far.</p>
  <p>my nuxt.config.js looks like this at the moment:</p>
  <pre><code>auth: {
      redirect: {
        home: &quot;/&quot;,
        login: &quot;/&quot;
      },
      strategies: {
        local: {
          endpoints: {
            login: { url: &quot;/api/session&quot;, method: &quot;post&quot; },
            logout: { url: &quot;/api/session&quot;, method: &quot;destroy&quot; },
            user: { url: &quot;/api/settings&quot;, method: &quot;get&quot;, propertyName: false }
          },
          tokenType: 'Bearer'
        }
      },
      redirect: {
        login: '/',
        logout: '/',
        home: false,
      },
    }
  </code></pre>
  <p>And then there is the button from the home page:</p>
  <pre><code>&lt;span v-if=&quot;this.$store.state.auth.loggedIn&quot; class=&quot;inline-flex rounded-md shadow&quot;&gt;
  &lt;button
    @click=&quot;$auth.logout()&quot;
    v-scroll-to=&quot;'#login'&quot;
    &gt;Logout&lt;/button&gt;
  &lt;/span&gt;
  </code></pre>
  <p>and the button from the Dashboard:</p>
  <pre><code>&lt;button
    @click=&quot;$auth.logout()&quot;
  &gt;
  &lt;span class=&quot;font-normal text-sm mt-0/5&quot;&gt;Logout&lt;/span&gt;
  &lt;/button&gt;
  </code></pre>