mirror of
https://github.com/kmc7468/arkvault.git
synced 2025-12-17 23:48:45 +00:00
loadenv에서 수명 관련 환경 변수의 값을 미리 밀리초 단위로 변환해놓도록 변경
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { error } from "@sveltejs/kit";
|
||||
import argon2 from "argon2";
|
||||
import ms from "ms";
|
||||
import { v4 as uuidv4 } from "uuid";
|
||||
import { getClient, getClientByPubKeys, getUserClient } from "$lib/server/db/client";
|
||||
import { getUserByEmail } from "$lib/server/db/user";
|
||||
@@ -86,8 +85,7 @@ export const refreshToken = async (refreshToken: string) => {
|
||||
};
|
||||
};
|
||||
|
||||
const expiresIn = ms(env.challenge.tokenUpgradeExp);
|
||||
const expiresAt = () => new Date(Date.now() + expiresIn);
|
||||
const expiresAt = () => new Date(Date.now() + env.challenge.tokenUpgradeExp);
|
||||
|
||||
const createChallenge = async (
|
||||
ip: string,
|
||||
|
||||
Reference in New Issue
Block a user