From 84bad292d3e624f7bdb03522c34e0a9b28542a16 Mon Sep 17 00:00:00 2001 From: Tolga Ergin Date: Sun, 8 Nov 2026 04:35:31 +0000 Subject: [PATCH 1/2] Document that a trailing slash doesn't change the login registry Co-Authored-By: Claude Opus 5.5 --- content/docs/infra/login.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/content/docs/infra/login.mdx b/content/docs/infra/login.mdx index 54b9a5c2..553abca5 100644 --- a/content/docs/infra/login.mdx +++ b/content/docs/infra/login.mdx @@ -88,6 +88,7 @@ lpm whoami --registry https://registry.example.com ``` `--registry` selects the browser-login service. `--login-registry` instead stores a token for an npm-compatible registry. +A trailing slash doesn't change the registry: `https://registry.example.com/` and `https://registry.example.com` share one login. A login that an earlier release stored under the slashed spelling moves to the shared key the first time LPM CLI reads it, and `lpm logout` removes both. The authorization-code exchange has a 30-second timeout and refuses redirects. If it fails, correct the registry connection and restart login. From 6b832fe3c75ebb066ae5069e5817510e78f02b3e Mon Sep 17 00:00:00 2001 From: Tolga Ergin Date: Sun, 8 Nov 2026 05:30:05 +0000 Subject: [PATCH 2/2] Document when a slashed login moves and when it is removed Co-Authored-By: Claude Opus 5.5 --- content/docs/infra/login.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/docs/infra/login.mdx b/content/docs/infra/login.mdx index 553abca5..b40969b2 100644 --- a/content/docs/infra/login.mdx +++ b/content/docs/infra/login.mdx @@ -88,7 +88,7 @@ lpm whoami --registry https://registry.example.com ``` `--registry` selects the browser-login service. `--login-registry` instead stores a token for an npm-compatible registry. -A trailing slash doesn't change the registry: `https://registry.example.com/` and `https://registry.example.com` share one login. A login that an earlier release stored under the slashed spelling moves to the shared key the first time LPM CLI reads it, and `lpm logout` removes both. +A trailing slash doesn't change the registry: `https://registry.example.com/` and `https://registry.example.com` share one login. A login that an earlier release stored under the slashed spelling moves to the shared key the first time LPM CLI reads it, unless the shared key already holds a login. Clearing the shared key's login, as `lpm logout` or a rejected session does, removes the slashed login too. The authorization-code exchange has a 30-second timeout and refuses redirects. If it fails, correct the registry connection and restart login.