From fc5fc6de589fcca564b341c4d732f2762c491584 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Sun, 19 Oct 2025 12:28:34 +0530 Subject: [PATCH] add docs --- docs/references/account/create-token-cli.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 docs/references/account/create-token-cli.md diff --git a/docs/references/account/create-token-cli.md b/docs/references/account/create-token-cli.md new file mode 100644 index 0000000000..ac4c1cd395 --- /dev/null +++ b/docs/references/account/create-token-cli.md @@ -0,0 +1,3 @@ +Initiates a browser-based authentication flow for CLI applications. This endpoint generates a token that allows users to authenticate from their browser and then return to the CLI with valid credentials. The user will be redirected to their browser where they can complete the authentication process. Once authenticated, the secret and userId will be made available to the CLI application. Use the returned user ID and secret and submit a request to the [POST /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process. The token is valid for 15 minutes. + +A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits). \ No newline at end of file