diff --git a/package.json b/package.json index 8b4a122..6469560 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@bergetai/opencode-auth", - "version": "1.0.26", + "version": "1.0.27", "description": "Berget AI auth plugin for OpenCode - authenticate with your Berget account", "author": "Berget AI", "repository": "https://github.com/berget-ai/opencode-berget-auth", @@ -68,4 +68,4 @@ "oauth", "keycloak" ] -} +} \ No newline at end of file diff --git a/src/constants.ts b/src/constants.ts index c5f68d2..430f830 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -31,12 +31,12 @@ export const KEYCLOAK_CLIENT_ID = 'berget-code'; export const getKeycloakUrl = (): string => { const apiUrl = getApiUrl(); if (apiUrl.includes('localhost') || apiUrl.includes('127.0.0.1')) { - return 'https://keycloak.stage.berget.ai'; // Local dev uses stage Keycloak + return 'https://auth.stage.berget.ai'; // Local dev uses stage Keycloak } if (apiUrl.includes('stage')) { - return 'https://keycloak.stage.berget.ai'; + return 'https://auth.stage.berget.ai'; } - return 'https://keycloak.berget.ai'; + return 'https://auth.berget.ai'; }; export const getKeycloakRealm = (): string => 'berget';