Skip to content

Commit

Permalink
Fix OAuth2 code verifier too short (usebruno#1793)
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrygamat authored and Mateusz Pietryga committed Mar 19, 2024
1 parent 2b0ad29 commit 22b36a7
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
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 22b36a7

Please sign in to comment.