mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Made validateUserToken avaible via get requests & updated the system so
that it now has a privacy policy & terms of service (TOS) And added a add email & display current email logic.
This commit is contained in:
parent
45397675f5
commit
aa355e03fd
4 changed files with 103 additions and 16 deletions
|
@ -1,12 +1,11 @@
|
|||
import sql from "~/server/components/postgres";
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const body = await readBody(event);
|
||||
const token = getCookie(event, "token");
|
||||
if (!token) {
|
||||
return {
|
||||
error: "INVALID_TOKEN",
|
||||
requested_action: "LOGOUT_USER",
|
||||
requested_action: "USE_DEFAULT_STATE",
|
||||
};
|
||||
}
|
||||
const checkIsUUIDRegex =
|
Loading…
Add table
Add a link
Reference in a new issue