fix(vk): check for empty email after user profile mapping (#5719)

This commit is contained in:
Icy
2025-11-02 15:38:40 +00:00
committed by GitHub
parent 102496403c
commit d159e97931

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: {