I am following SSR tutorial from Appwrite in Nextjs 14: https://appwrite.io/docs/products/auth/server-side-rendering
How do I get user details in the middleware?
I can get session cookie, but not sure how do I get the user from it?
const session = request.cookies.get(SESSION_COOKIE);
When I try to initialize Client() from node-appwrite, it throws this error:
node:stream
Module build failed: UnhandledSchemeError: Reading from "node:stream" is not handled by plugins (Unhandled scheme).
Webpack supports "data:" and "file:" URIs by default.
You may need an additional plugin to handle "node:" URIs.
User details in middleware (Next.js)
Recommended threads
- I recently switched to TablesDb. When li...
olddb.list_documents( queries =[ Query.order_desc("timestamp"), Query.equal("isPosted",[False]) ] ) Above works fine and reruns documents But below don't return...
- Database error validating 'min' and 'max...
I keep seeing an error when I try to add a column to a database table within the AppWrite cloud UI. I also see this error when trying to create or update a reco...
- Anyone manage to get a slack-bot working...
I'm trying to setup a bot the send and retrieve slack messages to a chat in my site. I've failed with SSE and appwrite functions soo far... i'll trying polling ...