
I want to delete the user's current session via the client side. This is my full function:
export const deleteUserSession = async () => {
try {
const resRemoveSession = await account.deleteSession({
sessionId: 'current'
});
return { success: resRemoveSession.message === '' }
} catch (error) {
console.error('Error removing session:', error);
return { success: false }
}
}
This is the error I get:
Failed to load resource: net::ERR_SSL_PROTOCOL_ERROR
at _Client.<anonymous> (appwrite.js?v=b8449cf1:509:30)
at Generator.next (<anonymous>)
at appwrite.js?v=b8449cf1:28:67
at new Promise (<anonymous>)
at __awaiter (appwrite.js?v=b8449cf1:10:10)
at _Client.call (appwrite.js?v=b8449cf1:506:12)
at Account.deleteSession (appwrite.js?v=b8449cf1:1603:24)
at deleteUserSession
This is what I want: https://appwrite.io/docs/references/cloud/client-web/account#deleteSession

@Kenny 👆

What version of appwrite sdk? Coud or self hosted?

Dependency: "appwrite": "^19.0.0",

Cloud Version 1.8.0

hmm that doesn't seem like an issue with appwrite, but maybe with the sdk itself? If it were appwrite you'd be catching an appwrite exception.
Did you recently upgrade the version? What were you on previously?
Recommended threads
- Issue with create collection button.
i can't find the create collection button. instead of that create tables is appearing.
- Regression scripts suddenly failing for ...
Scripts we've had for months are failing on a doc object relationship parent. Previously returning list of documents, each object would return a parent field as...
- Issue with Appwrite Sites
2025-09-03T09:03:10.523027289Z [09:03:10] [open-runtimes] Environment preparation started. 2025-09-03T09:03:10.526721535Z [09:03:10] [open-runtimes] Error: No ...
