Fix incorrect field in validateProviderAuthToken

This commit is contained in:
Tuan Dang
2023-08-13 14:08:26 +07:00
parent c0f3aecad3
commit 95d25b114e
3 changed files with 15 additions and 4 deletions
+1 -1
View File
@@ -408,7 +408,7 @@ export const validateProviderAuthToken = async ({
);
if (
!user.authMethods.includes(decodedToken.authProvider) ||
!user.authMethods.includes(decodedToken.authMethod) ||
decodedToken.email !== email
) {
throw new Error("Invalid authentication credentials.")