Skip to content

Commit c7ede5a

Browse files
pitzcarraldoclaude
andcommitted
fix: preserve Firebase tokens during Clix logout
Use clearClixCredentials() instead of delete() in LogoutUI to only clear Clix auth tokens while preserving Firebase OAuth tokens. Co-Authored-By: Claude (global.anthropic.claude-haiku-4-5-20251001-v1:0) <noreply@anthropic.com>
1 parent fe9e078 commit c7ede5a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/ui/LogoutUI.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export const LogoutUI: React.FC<LogoutUIProps> = ({ onComplete }) => {
2626
setPhase('checking');
2727
const credentials = await credentialsManager.load();
2828

29-
if (!credentials) {
29+
if (!credentials?.clix) {
3030
setPhase('not_logged_in');
3131
setTimeout(() => {
3232
if (onComplete) {
@@ -38,9 +38,9 @@ export const LogoutUI: React.FC<LogoutUIProps> = ({ onComplete }) => {
3838
return;
3939
}
4040

41-
// Delete credentials
41+
// Clear Clix credentials only (preserve Firebase tokens)
4242
setPhase('deleting');
43-
await credentialsManager.delete();
43+
await credentialsManager.clearClixCredentials();
4444

4545
setPhase('complete');
4646
setTimeout(() => {

0 commit comments

Comments
 (0)