Fix OAuth2 code verifier too short (#1793) (#1809)

This commit is contained in:
Mateusz Pietryga 2024-03-22 14:09:50 +01:00 committed by GitHub
parent 0b2b16abcc
commit ae3c76a6c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) => {