Replies: 1 comment 1 reply
-
@luis9430 Likewise, you have to wait for the import DirectusSDK from "@directus/sdk-js";
const client = new DirectusSDK();
async function dataExample() {
await client.login({ ... });
const data = await client.getItems('example');
console.log(data);
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am new to this and I am creating a project with nuxt and directus, I am trying to connect to the sdk js, I have already made the connection but I cannot get the data to be printed on the front
my code is this
when I check my console I get this message: "Unauthorized request"
I know it is my mistake, but I am new and I am a bit out of place, I hope you can help me, thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions