nuxt-directus icon indicating copy to clipboard operation
nuxt-directus copied to clipboard

nuxt-directus-next - login, register readMe uses wrong URL

Open creazy231 opened this issue 1 year ago • 2 comments

Version

nuxt-directus-next: 0.0.15

Steps to reproduce

login / register

await login(values.email, values.password, {
  readMe: {
    query: {
      fields: [ "*.*" ],
    },
  },
});

What is actually happening?

calling the function as above results in http://localhost:8055/users/me?query= URL but it should be http://localhost:8055/users/me?fields=

creazy231 avatar Feb 27 '25 10:02 creazy231

Now I'm wondering why it worked in the first place.

But yes, it was being refactored from the ground up

sandros94 avatar Feb 27 '25 10:02 sandros94

The initial page load query from

directus: {
  url: config.api.baseUrl,
  moduleConfig: {
    readMeQuery: {
      fields: [ "*.*" ],
    },
  },
},

works btw

creazy231 avatar Feb 27 '25 10:02 creazy231