mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-01 08:34:53 +02:00
use config file instead of env
This commit is contained in:
parent
6fb569e2cd
commit
d9ae322e2a
19 changed files with 189 additions and 209 deletions
|
@ -24,8 +24,6 @@ export async function verifyUser(
|
|||
): Promise<any> {
|
||||
const parsedBody = verifyUserBody.safeParse(req.query);
|
||||
|
||||
logger.debug("Parsed body", parsedBody);
|
||||
|
||||
if (!parsedBody.success) {
|
||||
return next(
|
||||
createHttpError(
|
||||
|
@ -40,9 +38,6 @@ export async function verifyUser(
|
|||
try {
|
||||
const { session, user } = await lucia.validateSession(sessionId);
|
||||
|
||||
logger.debug("Session", session);
|
||||
logger.debug("User", user);
|
||||
|
||||
if (!session || !user) {
|
||||
return next(
|
||||
createHttpError(HttpCode.UNAUTHORIZED, "Invalid session"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue