feat!: use elysia js intead of koa #18

Merged
monoid merged 10 commits from elysia into main 2025-10-01 02:04:47 +09:00
Showing only changes of commit cb6d03458f - Show all commits

View file

@ -127,8 +127,8 @@ async function authenticate(
const secretKey = setting.jwt_secretkey; const secretKey = setting.jwt_secretkey;
const accessCookie = cookie[accessTokenName]; const accessCookie = cookie[accessTokenName];
const refreshCookie = cookie[refreshTokenName]; const refreshCookie = cookie[refreshTokenName];
const accessValue = accessCookie?.value; const accessValue = typeof accessCookie?.value === 'string' ? accessCookie.value : undefined;
const refreshValue = refreshCookie?.value; const refreshValue = typeof refreshCookie?.value === 'string' ? refreshCookie.value : undefined;
const guestUser: PayloadInfo = { const guestUser: PayloadInfo = {
username: "", username: "",