fix(social-providers/vk): check for empty email after profile mapping

This commit is contained in:
Icy
2025-11-01 11:23:25 +00:00
parent 31108b3658
commit 2065693286

View File

@@ -98,11 +98,11 @@ export const vk = (options: VkOption) => {
if (error) {
return null;
}
if (!profile.user.email) {
return null;
}
const userMap = await options.mapProfileToUser?.(profile);
if (!profile.user.email && !userMap?.email) {
return null;
}
return {
user: {