diff options
| author | MohamedBassem <me@mbassem.com> | 2024-04-09 19:05:28 +0100 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-04-09 19:05:28 +0100 |
| commit | f696d33b645c53369ec5833593bdc77c9fb7cea9 (patch) | |
| tree | bde841a66187af0581831316a4b90895db1690a1 /apps/browser-extension/src/SignInPage.tsx | |
| parent | 5ab6c3304b4a2d055767b8195fac9c9eec776d16 (diff) | |
| download | karakeep-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.tsx | 2 |
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"); }, }); |
