Fix more links

This commit is contained in:
Vincent (Wen Yu) Ge
2024-02-13 12:55:04 -05:00
parent 825ab08316
commit 56c079167a
2 changed files with 3 additions and 3 deletions

View File

@@ -26,12 +26,12 @@ Methods that create tokens include [Magic URL login](/docs/products/auth/magic-u
These methods transfer the token `userId` and `secret` to the client, via a URL, email, SMS, or other method. The client then uses the token to create a session.
Custom tokens can be created using the [Create token](/docs/references/cloud/server-node/users#createToken) endpoint of the [Users API](/docs/products/auth/users).
Custom tokens can be created using the [Create token](/docs/references/cloud/server-nodejs/users#createToken) endpoint of the [Users API](/docs/products/auth/users).
# Create a session using the token {% #create-session-using-token %}
After the token is created, the client uses the token to create a session. The session is then used to authenticate the user for subsequent requests.
To create a session, the client sends the token to the server using the [Create session](/docs/references/cloud/server-node/account#createSession) endpoint of the [Account API](/docs/products/auth/users). The server then returns a session object.
To create a session, the client sends the token to the server using the [Create session](/docs/references/cloud/server-nodejs/account#createSession) endpoint of the [Account API](/docs/products/auth/users). The server then returns a session object.
When the session is successfully created, the session is stored in a persistent manner and you can now do requests as authorized user from the application.

View File

@@ -46,7 +46,7 @@ npm install
# Install Appwrite {% #install-appwrite %}
Appwrite provides a Node SDK that can be used in your Svelte apps. You can use Appwrite by installing the Node SDK as an NPM package.
The Node SDK is intended for server-side use. If you want to use Appwrite in a client-side application, you should [use the Web SDK instead](/docs/tutorials/svelte-auth).
The Node SDK is intended for server-side use. If you want to use Appwrite in a client-side application, you should [use the Web SDK instead](/docs/tutorials/sveltekit-csr-auth).
```sh
npm install node-appwrite