refactor: auth stuff

This commit is contained in:
2025-09-18 11:39:29 -04:00
parent c82abe88e4
commit 3cc4b570d5
9 changed files with 93 additions and 44 deletions

View File

@@ -2,8 +2,7 @@ import { defineEventHandler } from "h3";
export default defineEventHandler(async (event) => {
try {
// TODO: Switch back to the previous user.
await clearUserSession(event);
await handleSwitchBack(event);
return { success: true };
}
catch (error) {