Web Developer
I am creating an Appwrite Function and it is supposed to create some documents in the database.
I am facing permissions issues when creating the document.
"{"message":"An error occured","error":"User (role: guests) missing scope (users.read)"}"
Something I understand that I need to authorize the request. However I am unable to figure out how to do this and need some help.
Here is my implementation
functions
.createExecution("", JSON.stringify(payload))
.then((response) => {
console.log('func success: \n', response);
})
.catch((error) => {
console.log('func failed: \n', error);
});