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
- Project is currently blocked
When accessing the Appwrite console, I receive the message: "Project is currently blocked. Access to this project is restricted. Contact support if the issue pe...
- {"code": 1008, "message": "Invalid Origi...
Nothing has changed in my application or console settings so I'm curious as to what I need to do to fix this. I already have the client registered so I'm not en...
- SSL certificate issuance failed:
Domain verifies but SSL cert fails, tried different subdomains like .api and .aw, used cname and CAA, no prior CAA existed on website, tried Multiple CAAs at on...