mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 19:28:35 +00:00
Fix incorrect field in validateProviderAuthToken
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user