Skip to content

Commit

Permalink
fix(automate): fix possible auth error (#3470)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdriesler authored Nov 8, 2024
1 parent b77d705 commit e4a005f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/server/modules/automate/services/authCode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export const validateStoredAuthCodeFactory =

if (
!formattedPayload ||
formattedPayload.code !== formattedPayload.code ||
formattedPayload.userId !== formattedPayload.userId ||
formattedPayload.action !== formattedPayload.action
formattedPayload.code !== payload.code ||
formattedPayload.userId !== payload.userId ||
formattedPayload.action !== payload.action
) {
throw new AutomateAuthCodeHandshakeError('Invalid automate auth payload')
}
Expand Down

0 comments on commit e4a005f

Please sign in to comment.