I'm using nextJS and SSR, i'm attempting to clear the cookie of the user and delete the sessions on appwrite but I get the error attached.
I'll provide my endpoint for this and the snippet used on the dashboard along with my appwrite.js file.
Would like to know whats causing this as I know my API key has all the permissions I need and it is valid.
dashboard snippet :
const handleLogout = async () => {
try {
const response = await fetch('/api/auth/', { method: 'DELETE' });
if (response.ok) {
router.push('/login');
} else {
throw new Error('Logout failed');
}
} catch (error) {
console.error("Logout failed:", error);
setError(error.message);
}
};
[SOLVED] (role: applications) missing scope (account)
Hey @kyuri How did you reolve this?
Recommended threads
- Project Paused Despite Daily Active Usag...
I noticed that my project was automatically **paused**, even though it is actively being used. The project is an **attendance application** that is used daily b...
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...
- User ID case sensitivity
I see that through REST (and SDK as well), getting a user is not case sensitive. And even though documentation does not clearly state that it is, the wording "V...