-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconstants.js
More file actions
27 lines (23 loc) · 923 Bytes
/
constants.js
File metadata and controls
27 lines (23 loc) · 923 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
export const PARENT_DIR_FOR_TARGETS = "targets";
export const PARENT_DIR_FOR_CONTENTS = "contents";
export const TARGET_COLLECTION = process.env.USER + "_targets";
export const CONTENT_COLLECTION = process.env.USER + "_contents";
export const USER_COLLECTION = process.env.USER + "_users";
export const LINKING_COLLECTION = process.env.USER + "_linking";
export const SCENE_COLLECTION = process.env.USER + "_scenes";
export const ACCEPTED_IMAGE_FILE_TYPES = ["png", "jpg", "jpeg", "webp"];
export const ACCEPTED_TARGET_FILE_TYPES = ["mind"];
export const ACCEPTED_CONTENT_FILE_TYPES = [
...ACCEPTED_IMAGE_FILE_TYPES,
"mp4",
"glb",
];
export const ACCESS_TOKEN_EXPIRY = "15m";
export const REFRESH_TOKEN_EXPIRY = "7d";
export const JWT_COOKIE_NAME = "jwt";
export const JWT_COOKIE_OPTIONS = {
httpOnly: true,
sameSite: "None",
secure: true,
};
export const COOKIE_EXPIRY = 7 * 24 * 60 * 60 * 1000; // 7 days