mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
cookies (that may be not possible, but it is a safety guard I want to add. (Chat: https://t3.chat/chat/c1883e6a-6c38-4af3-9818-0e927449c61c)
20 lines
445 B
TypeScript
20 lines
445 B
TypeScript
import getUserTokenMinusSQLInjection from "~/server/components/getUserToken";
|
|
|
|
export default defineEventHandler(async (event) => {
|
|
const loginCookie = await getUserTokenMinusSQLInjection(event);
|
|
try {
|
|
if (false) {
|
|
deleteCookie(event, "token");
|
|
return {
|
|
success: true,
|
|
error: null,
|
|
};
|
|
}
|
|
return "testing";
|
|
} catch (e) {
|
|
return {
|
|
success: false,
|
|
error: e.message,
|
|
};
|
|
}
|
|
});
|