added chunithm version selector in admin settings

This commit is contained in:
Polaris
2024-08-20 16:49:01 -04:00
parent 552f737650
commit d6629a72eb
37 changed files with 614 additions and 107 deletions

View File

@ -1,8 +1,8 @@
import { cookies } from "next/headers";
import { cache } from "react";
import type { Session, User } from "lucia";
import { lucia } from "@/lib/lucia";
import { cookies } from "next/dist/client/components/headers";
export const getAuth = cache(
async (): Promise<
@ -24,7 +24,7 @@ export const getAuth = cache(
cookies().set(
sessionCookie.name,
sessionCookie.value,
sessionCookie.attributes
sessionCookie.attributes,
);
}
if (!result.session) {
@ -32,10 +32,10 @@ export const getAuth = cache(
cookies().set(
sessionCookie.name,
sessionCookie.value,
sessionCookie.attributes
sessionCookie.attributes,
);
}
} catch {}
return result;
}
},
);