aboutsummaryrefslogtreecommitdiffstats
path: root/apps/browser-extension/src/SignInPage.tsx
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-04-09 19:05:28 +0100
committerMohamedBassem <me@mbassem.com>2024-04-09 19:05:28 +0100
commitf696d33b645c53369ec5833593bdc77c9fb7cea9 (patch)
treebde841a66187af0581831316a4b90895db1690a1 /apps/browser-extension/src/SignInPage.tsx
parent5ab6c3304b4a2d055767b8195fac9c9eec776d16 (diff)
downloadkarakeep-f696d33b645c53369ec5833593bdc77c9fb7cea9.tar.zst
fix: Delete the API key on logout from phone or extension
Diffstat (limited to 'apps/browser-extension/src/SignInPage.tsx')
-rw-r--r--apps/browser-extension/src/SignInPage.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/browser-extension/src/SignInPage.tsx b/apps/browser-extension/src/SignInPage.tsx
index a9b77e83..aa8699ae 100644
--- a/apps/browser-extension/src/SignInPage.tsx
+++ b/apps/browser-extension/src/SignInPage.tsx
@@ -15,7 +15,7 @@ export default function SignInPage() {
isPending,
} = api.apiKeys.exchange.useMutation({
onSuccess: (resp) => {
- setSettings((s) => ({ ...s, apiKey: resp.key }));
+ setSettings((s) => ({ ...s, apiKey: resp.key, apiKeyId: resp.id }));
navigate("/options");
},
});