search.tsx use-debounce
This commit is contained in:
1 parent
2e84813f49
commit
ff0bb63367
6 files changed
+108
-29
No files matched your search
+9
-9
@@ -71,12 +71,12 @@ export async function getCurrentUser() {
|
||||
}
|
||||
}
|
||||
|
||||
// export async function logOut(): Promise<boolean> {
|
||||
// try {
|
||||
// await account.deleteSession(sessionId: 'current');
|
||||
// return true;
|
||||
// } catch (error) {
|
||||
// console.error("Failed to log out user:", error);
|
||||
// return false;
|
||||
// }
|
||||
// }
|
||||
export async function logOut(): Promise<boolean> {
|
||||
try {
|
||||
const result = await account.deleteSession('current');
|
||||
return result
|
||||
} catch (error) {
|
||||
console.error("Failed to log out user:", error);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user