Skip to content

Commit e9671db

Browse files
aadivarclaude
andcommitted
fix(auth): use upstream protocol for OAuth deep links
Changed protocol back to twentyfirst-agents to match the 21st.dev backend. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4bcff3b commit e9671db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/auth-manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ export class AuthManager {
216216
if (this.isDev) {
217217
authUrl += `&callback=${encodeURIComponent(`http://localhost:${AUTH_SERVER_PORT}/auth/callback`)}`
218218
// Pass dev protocol so production web can use correct deep link if callback fails
219-
authUrl += `&protocol=aadivar-1code-dev`
219+
authUrl += `&protocol=twentyfirst-agents-dev`
220220
}
221221

222222
shell.openExternal(authUrl)

src/main/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import { IS_DEV, AUTH_SERVER_PORT } from "./constants"
4040

4141
// Deep link protocol (must match package.json build.protocols.schemes)
4242
// Use different protocol in dev to avoid conflicts with production app
43-
const PROTOCOL = IS_DEV ? "aadivar-1code-dev" : "aadivar-1code"
43+
const PROTOCOL = IS_DEV ? "twentyfirst-agents-dev" : "twentyfirst-agents"
4444

4545
// Set dev mode userData path BEFORE requestSingleInstanceLock()
4646
// This ensures dev and prod have separate instance locks

0 commit comments

Comments
 (0)