handled error cases for external auth login

This commit is contained in:
Sheen Capadngan
2023-05-18 00:39:20 +08:00
parent 4b2e91da74
commit 6ca3b8ba61
4 changed files with 21 additions and 13 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ const initializePassport = async () => {
req.providerAuthToken = providerAuthToken;
cb(null, profile);
} catch (err) {
cb(err);
cb(null, false);
}
}));
}