Skip to content

Commit bcf1d54

Browse files
toto-castaldiclaude
andcommitted
feat(web): add logout button to setup API keys page
Users can now switch accounts during setup 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 294d5be commit bcf1d54

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

apps/web/src/pages/setup/SetupApiKeysPage.tsx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { useNavigate } from 'react-router-dom';
33
import {
44
saveApiKey,
55
testApiKey as testApiKeyFn,
6+
signOut,
67
API_KEY_PREFIXES,
78
APP_NAME,
89
type LLMProvider,
@@ -129,6 +130,11 @@ export function SetupApiKeysPage() {
129130
setTestStatus('idle');
130131
};
131132

133+
const handleLogout = async () => {
134+
await signOut();
135+
navigate('/login');
136+
};
137+
132138
return (
133139
<div className="flex min-h-screen items-center justify-center p-4">
134140
<Card className="w-full max-w-lg">
@@ -227,6 +233,18 @@ export function SetupApiKeysPage() {
227233
{isLoading ? 'Salvando...' : 'Continua'}
228234
</Button>
229235
</div>
236+
237+
<div className="pt-4 border-t text-center">
238+
<Button
239+
type="button"
240+
variant="ghost"
241+
size="sm"
242+
onClick={handleLogout}
243+
className="text-muted-foreground"
244+
>
245+
Usa un altro account? Logout
246+
</Button>
247+
</div>
230248
</form>
231249
</CardContent>
232250
</Card>

0 commit comments

Comments
 (0)