Closed sunnylqm closed 1 month ago
1.1.18
Darwin 24.0.0 arm64 arm
export const checkLogined = new Elysia().derive( { as: 'scoped' }, ({ headers, error }) => { const token = headers['x-accesstoken']; const session = token && checkTokenWithInfo(token, 'user'); if (!session) { return error(401, { message: 'Unauthorized', }); } return { userId: session.uid, }; }, );
it worked fine before 1.1.18
No response
node_modules
bun.lockb
yes
fix with 93d457b
What version of Elysia is running?
1.1.18
What platform is your computer?
Darwin 24.0.0 arm64 arm
What steps can reproduce the bug?
What is the expected behavior?
it worked fine before 1.1.18
What do you see instead?
Additional information
No response
Have you try removing the
node_modules
andbun.lockb
and try again yet?yes