nuxt auth module 5 refresh scheme code example

Example: how refresh token jwt nuxt auth

auth: {
    localStorage: false,
    strategies: {
      local: {
        scheme: 'refresh', // `_scheme` is now `scheme` 
        token: {
          property: 'access',
          type: 'Bearer', // `tokenType` is now `token.type`
          required: true // `tokenRequired` is now `token.required`
        },
        refreshToken: {
          property: 'refresh_token' // change to your refresh token property
        },
        user: {
          property: false,  // `user` property is now `user.property`
          autoFetch: true
        },
        endpoints: {
          login: { url: '/api/v1/auth/jwt/create/', method: 'post' },
          refresh: { url: '/api/v1/auth/jwt/refresh/', method: 'post' },  // change to your refresh token url
          user: { url: '/api/v1/auth/users/me/', method: 'get' },
          logout: false
        }
      }
    }
  }