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);
}
}
