Revert "Update management-auth.ts"

This reverts commit 0dd50c0375.
This commit is contained in:
Stefan Lazic committed 2026-09-05 09:32:16 +01:00
1 parent 3cef279d2d
commit 32e93c6c23
1 file changed
+1 -2
+1 -2
View File
@@ -40,8 +40,7 @@ export async function clearManagerSession() {
export async function isManagerAuthenticated() { export async function isManagerAuthenticated() {
const config = getManagerConfig(); const config = getManagerConfig();
if (!config.authSecret) return false; if (!config.authSecret) return false;
const rawValue = (await cookies()).get(COOKIE_NAME)?.value; const value = (await cookies()).get(COOKIE_NAME)?.value;
const value = rawValue ? decodeURIComponent(rawValue) : undefined;
if (!value) return false; if (!value) return false;
const separator = value.lastIndexOf("."); const separator = value.lastIndexOf(".");
if (separator < 1) return false; if (separator < 1) return false;