From 69cc49b10198f2fdf1d8f12a752c1d1311017169 Mon Sep 17 00:00:00 2001 From: Basile Spaenlehauer Date: Mon, 15 Apr 2024 14:12:26 +0200 Subject: [PATCH] fix: add username constants (#479) * fix: add username constants * fix: update min username length to 3 * fix: update constants --- src/constants/limits.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/constants/limits.ts b/src/constants/limits.ts index 1206110b..580629e9 100644 --- a/src/constants/limits.ts +++ b/src/constants/limits.ts @@ -66,3 +66,12 @@ export const MAX_THUMBNAIL_SIZE = 10 * 1024 * 1024; * Maximum item name length */ export const MAX_ITEM_NAME_LENGTH = 500 as const; + +/** + * Maximum username length + */ +export const MAX_USERNAME_LENGTH = 60 as const; +/** + * Minimum username length + */ +export const MIN_USERNAME_LENGTH = 2 as const;