mirror of
https://github.com/LukeHagar/website.git
synced 2025-12-08 21:07:45 +00:00
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:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user