We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.1.3
Linux 6.5.0-44-generic x86_64 x86_64
import { Elysia } from "elysia"; const app = new Elysia() .derive(({ error, cookie: { accessToken } }) => { if (!accessToken) { return { isConnected: true }; } return { currentUser: false }; }) .get("/hello", async ({ currentUser, error }) => { if (currentUser) { return { message: "world" }; } return error(401, { message: "Error" }); }) .listen(3000); console.log( `🦊 Elysia is running at ${app.server?.hostname}:${app.server?.port}`, );
Destructure accessToken as in 1.0.*
{"name":"TypeError","message":"Right side of assignment cannot be destructured"}
No response
The text was updated successfully, but these errors were encountered:
i have this error too after updating elysia
Sorry, something went wrong.
No branches or pull requests
What version of Elysia.JS is running?
1.1.3
What platform is your computer?
Linux 6.5.0-44-generic x86_64 x86_64
What steps can reproduce the bug?
What is the expected behavior?
Destructure accessToken as in 1.0.*
What do you see instead?
{"name":"TypeError","message":"Right side of assignment cannot be destructured"}
Additional information
No response
The text was updated successfully, but these errors were encountered: