···33 NodeSavedSessionStore,
44 NodeSavedState,
55 NodeSavedStateStore,
66-} from "jsr:@bigmoves/atproto-oauth-client";
66+} from "@bigmoves/atproto-oauth-client";
7788/**
99 * The state store for sessions.
+4-4
routes/api/logout.ts
···11-import { getSession, destroyAllSessions } from "../../lib/sessions.ts";
11+import { destroyAllSessions, getSession } from "../../lib/sessions.ts";
22import { oauthClient } from "../../lib/oauth/client.ts";
33import { define } from "../../utils.ts";
44···1313 if (session.did) {
1414 // Try to revoke both types of sessions - the one that doesn't exist will just no-op
1515 await Promise.all([
1616- oauthClient.revoke(session.did).catch(console.error)
1616+ oauthClient.revoke(session.did).catch(console.error),
1717 ]);
1818 // Then destroy the iron session
1919 session.destroy();
2020 }
21212222 // Destroy all sessions including migration session
2323- await destroyAllSessions(req);
2323+ const result = await destroyAllSessions(req, response);
24242525- return response;
2525+ return result;
2626 } catch (error: unknown) {
2727 const err = error instanceof Error ? error : new Error(String(error));
2828 console.error("Logout failed:", err.message);