From 488ac9a4f6f2a6c7673788222e98695201147fc7 Mon Sep 17 00:00:00 2001 From: Jakob Karlstrand Date: Mon, 14 Sep 2026 11:31:00 +0200 Subject: [PATCH] feat: consistent login method labels - Berget Code Seat - Login using this device - Berget Code Seat - Login using other device with QR - Berget API Key - Enter API key manually Same wording as the berget CLI and pi-provider. --- README.md | 4 ++-- src/plugin.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 456c07f..b484108 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ opencode For team members with a Berget Code seat, on machines with a browser: 1. Run `/connect` in OpenCode -2. Select "Berget Code Seat - Magic link" +2. Select "Berget Code Seat - Login using this device" 3. The login page opens in your browser — token refresh is automatic ### Berget Code Seat — QR or device code @@ -39,7 +39,7 @@ The sign-in is valid for 10 minutes. If it times out, just run `/connect` again. For API key users: 1. Run `/connect` in OpenCode -2. Select "Use Berget AI API key" +2. Select "Berget API Key - Enter API key manually" 3. Paste your key — persisted across sessions ## How It Works diff --git a/src/plugin.ts b/src/plugin.ts index c7a7f31..b522866 100644 --- a/src/plugin.ts +++ b/src/plugin.ts @@ -132,16 +132,16 @@ export const BergetAuthPlugin = async ({ client }: PluginInput): Promise methods: [ { authorize: createPkceAuthorizeMethod(), - label: 'Berget Code Seat - Magic link', + label: 'Berget Code Seat - Login using this device', type: 'oauth' as const, }, { authorize: createDeviceAuthorizeMethod(), - label: 'Berget Code Seat - QR or device code', + label: 'Berget Code Seat - Login using other device with QR', type: 'oauth' as const, }, { - label: 'Use Berget AI API key', + label: 'Berget API Key - Enter API key manually', type: 'api' as const, }, ],