asapsonter
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. Hmm
If its the current user can log them out by deleting the current session
safwan
if you want to delete the current session, just use 'current'
for the Session ID
asapsonter
Oh I missed that. dumb me. Thanks
asapsonter
[Solved] sessionId
asapsonter
SOLVED] sessionId
asapsonter
[SOLVED] sessionId
Recommended threads
- Deep Linking & Password reset
I am using react native with expo. I want to implement deep link with the url recived via email. So when clicked the link it opens my app. I havent ever used de...
- custom domain with CloudFlare
Hi all, it seems that CloudFlare has blocked cross-domain CNAME link which made my app hostname which is in CloudFlare, unable to create a CNAME pointing to clo...
- My organization's project is blocked
My organization's project is blocked so unblocked my organization then I will this