my user is logged in via github oauth, but still getting this error
TypeScript
const response = await database.createDocument(
process.env.NEXT_PUBLIC_APPWRITE_DATABASE_ID!,
process.env.NEXT_PUBLIC_APPWRITE_COLLECTION_ID!,
ID.unique(),
{
userId: user.current?.$id,
[field]: value,
},
);
setDocumentId(response.$id);
TL;DR
Developers are experiencing authorization issues and incorrect user count display in a GitHub OAuth setup. The provided code snippet appears to be creating a document, linking it to the current user through their ID. Check if the user has the necessary permissions, and investigate why only one user is being counted.also i have 4 registered users, but its only showing one as the count
Recommended threads
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...
- > AppwriteException: The requested servi...
When trying to read or write from my database I get the following error: > AppwriteException: The requested service is disabled. You can enable the service from...