misc
This commit is contained in:
@@ -9,10 +9,9 @@ const token = Astro.cookies.get("access_token")?.value;
|
||||
let user = null;
|
||||
|
||||
try {
|
||||
const IS_DEV = (ENVIRONMENT==="Dev");
|
||||
if (token) {
|
||||
user = verifyToken(token);
|
||||
if (IS_DEV) {
|
||||
if (user) {
|
||||
console.log("Verified!", user);
|
||||
} else {
|
||||
throw Error("Authentication required");
|
||||
|
Reference in New Issue
Block a user