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
- TEAM INVITE
There is a problem with the team invitation. When a user invites other users, that time, the newly created email address they don't get the invite link and old ...
- education plan not activated
Hi I have an edu id 13103046@iubat.edu but when I am trying to claim my plan and trying to logging with github where education student plan active. the appwrite...
- 500 simultaneous OAuth logins from the s...
Hi, I'd like to ask about rate limiting around Google OAuth login on Appwrite Cloud. **OVERVIEW** Service type: A PWA (web app) for members of a university clu...