#[Solved] Create Document Error

4 messages · Page 1 of 1 (latest)

coarse crypt
#

Hello I am facing the isssue that current user is not authorized in create Document

code
async createPost({ title, content, image, status, userId }) {
try {
return await this.database.createDocument(
conf.appwriteDatabaseId,
conf.appwriteCollectionId,
ID.unique(),
{ title, content, image, status, userId }
);
} catch (error) {
console.log("Appwrite Error ::: createPost error:::", error);
}
}

buoyant mist
buoyant mist
coarse crypt