mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-10 04:22:09 +10:00
16 lines
330 B
TypeScript
16 lines
330 B
TypeScript
import sessionHandler from "../../internal/session";
|
|
|
|
defineRouteMeta({
|
|
openAPI: {
|
|
tags: ["Auth"],
|
|
description: "Tells server to deauthorize this session",
|
|
parameters: [],
|
|
},
|
|
});
|
|
|
|
export default defineEventHandler(async (h3) => {
|
|
await sessionHandler.signout(h3);
|
|
|
|
return sendRedirect(h3, "/auth/signin");
|
|
});
|