You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"SERVER_SECRET_KEY contains invalid characters. Only alphanumeric characters (a-z, A-Z, 0-9) are allowed. Please generate a valid key using 'pwgen 16 1' or ensure your key contains only letters and numbers.",
18
-
).default(
19
-
Deno.env.get("SERVER_SECRET_KEY")||"",
20
-
),
15
+
secret_key: z.preprocess(
16
+
(val)=>
17
+
val===undefined
18
+
? Deno.env.get("SERVER_SECRET_KEY")||""
19
+
: val,
20
+
z.string().length(16).regex(
21
+
/^[a-zA-Z0-9]+$/,
22
+
"SERVER_SECRET_KEY contains invalid characters. Only alphanumeric characters (a-z, A-Z, 0-9) are allowed. Please generate a valid key using 'pwgen 16 1' or ensure your key contains only letters and numbers.",
0 commit comments