mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-21 19:38:47 +00:00
fix(auth): update BETTER_AUTH_SECRET default value for legacy support
- Changed the default value of BETTER_AUTH_SECRET to ensure compatibility for users who enabled 2FA before the introduction of the new secret. - This update maintains existing authentication functionality while transitioning to a more secure default. close https://github.com/Dokploy/dokploy/issues/3645
This commit is contained in:
@@ -5,9 +5,10 @@ export const IS_CLOUD = process.env.IS_CLOUD === "true";
|
|||||||
export const CLEANUP_CRON_JOB = "50 23 * * *";
|
export const CLEANUP_CRON_JOB = "50 23 * * *";
|
||||||
export const docker = new Docker();
|
export const docker = new Docker();
|
||||||
|
|
||||||
|
// When not set, use the legacy default so 2FA remains working for users who
|
||||||
|
// enabled it before BETTER_AUTH_SECRET was introduced .
|
||||||
export const BETTER_AUTH_SECRET =
|
export const BETTER_AUTH_SECRET =
|
||||||
process.env.BETTER_AUTH_SECRET ||
|
process.env.BETTER_AUTH_SECRET || "better-auth-secret-123456789";
|
||||||
"RXu/xoLHaA1Xgs+R8a0LjVjCVOEnWISQWxw7nXxlvKo=";
|
|
||||||
|
|
||||||
export const paths = (isServer = false) => {
|
export const paths = (isServer = false) => {
|
||||||
const BASE_PATH =
|
const BASE_PATH =
|
||||||
|
|||||||
Reference in New Issue
Block a user