Update src/routes/docs/tutorials/nuxt-ssr-auth/step-3/+page.markdoc

Co-authored-by: Luke B. Silver <22452787+loks0n@users.noreply.github.com>
This commit is contained in:
Aditya Oberai
2025-06-04 17:57:28 +05:30
committed by GitHub
parent 05eedfb305
commit 101fc54358

View File

@@ -7,7 +7,7 @@ step: 3
Before you can use Appwrite, you need to create the Appwrite `Client` and set the project ID and endpoint.
The client is then used to create services like `Databases` and `Account`, so they all point to the same Appwrite project.
Create a function to build services you need in a file like `server/lib/appwrite.js` and **exporting the instances**.
Create a function to the build services you need in a file like `server/lib/appwrite.js` and **exporting the instances**.
As part of the function, set the current user's session if they are logged in. This is done by accessing the session cookie from the request and calling the `setSession(session)` with the cookie value.