Skip to content

Commit

Permalink
Fix OAuth2 code verifier too short (#1793)
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrygamat committed Mar 13, 2024
1 parent 410eecc commit f9a3b84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/bruno-electron/src/ipc/network/oauth2-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { authorizeUserInWindow } = require('./authorize-user-in-window');
const Oauth2Store = require('../../store/oauth2');

const generateCodeVerifier = () => {
return crypto.randomBytes(16).toString('hex');
return crypto.randomBytes(22).toString('hex');
};

const generateCodeChallenge = (codeVerifier) => {
Expand Down

0 comments on commit f9a3b84

Please sign in to comment.