title: Nuxt.js + Auth ( jwt refresh token )
body: <p>I have used Auth library for my Vue/Nuxt project. JWT Authentication works for me just fine, but there is a problem with <a href="https://dev.auth.nuxtjs.org/schemes/refresh/" rel="nofollow noreferrer">refresh token</a>.</p>
  <p>First of all refreshToken cookie is always set to null:</p>
  <p><a href="https://i.stack.imgur.com/nRhu7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nRhu7.png" alt="enter image description here" /></a></p>
  <p>Secondly, when i call this.$auth.refreshTokens() i got an error:</p>
  <blockquote>
  <p>this.$auth.refreshTokens is not a function</p>
  </blockquote>
  <p>I have been trying for a long time to solve this, but i finally give up :(</p>
  <p>You can see my <a href="https://github.com/Jakub1010/jwt-task-manager-server" rel="nofollow noreferrer">server side</a> and <a href="https://github.com/Jakub1010/jwt-task-manager-client" rel="nofollow noreferrer">client side</a> code on my GitHub.</p>
  <p>For a shortcat, below is fragment of nuxt.config.js file:</p>
  <pre><code>   auth: {
      strategies: {
        local: {
          scheme: 'refresh',
          token: {
            property: 'token',
            maxAge: 30,
            // type: 'Bearer'
          },
          refreshToken: {
            property: 'refreshToken',
            data: 'refreshToken',
            maxAge: 60
          },
          user: {},
          endpoints: {
            login: { url: 'users/login', method: 'post' },
            refresh: { url: 'users/refreshToken', method: 'post' },
            user: { url: 'users/me', method: 'get', propertyName: '' },
            logout: false
          },
          // autoLogout: false
        }
      }
   },
  </code></pre>
  <p>I have already checked if all names in the client config file and server are meet.
  Thank you in advance for your help and i am so sorry for mistakes in my English, i did my best...</p>