How can i get the user "[SESSION_ID]" to log them out using this function for example:
TypeScript
Account account = new Account(client);
account.deleteSession(
"[SESSION_ID]"
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
return;
}
Log.d("Appwrite", result.toString());
})
);
TL;DR
The user is trying to figure out how to log out a user by deleting their session using a specific function in an Android Kotlin SDK. The solution provided is to use the keyword `'current'` as the Session ID if you want to delete the current session. Additionally, a code snippet is given as an example of how to implement this function in Java.If its the current user can log them out by deleting the current session
if you want to delete the current session, just use 'current' for the Session ID
Oh I missed that. dumb me. Thanks
[Solved] sessionId
SOLVED] sessionId
[SOLVED] sessionId
Recommended threads
- {"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...
- android platform invaild origina
It happened today suddenly. Our app says invalid origin. And appwrite cloud says every time we tried to add the app to it: "param platformId" is not optional.
- All my apps are not opening now
All my apps are not opening now 200+ apps are not opening plz fast