From 768a9e0e7980e16519c426e25c29cdd801576533 Mon Sep 17 00:00:00 2001 From: Artem Savchenko Date: Tue, 11 Nov 2025 21:21:20 +0700 Subject: [PATCH] Do not use deleted email for login Signed-off-by: Artem Savchenko --- plugins/workbench-resources/src/connect.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/workbench-resources/src/connect.ts b/plugins/workbench-resources/src/connect.ts index 44452542bde..15e9d84f6a2 100644 --- a/plugins/workbench-resources/src/connect.ts +++ b/plugins/workbench-resources/src/connect.ts @@ -453,7 +453,7 @@ export async function connect (title: string): Promise { const hasEmail = (si: SocialId): boolean => { return [SocialIdType.EMAIL, SocialIdType.GOOGLE, SocialIdType.GITHUB].some((type) => type === si.type) } - const email = me.fullSocialIds.find((si) => hasEmail(si))?.key + const email = me.fullSocialIds.find((si) => hasEmail(si) && si.isDeleted !== true)?.key const socialId = me.fullSocialIds.find((si) => si._id === me.primarySocialId)?.key const data: Record = {