diff --git a/assets/js/oauth.js b/assets/js/oauth.js index 0316d374f..5c26832b3 100644 --- a/assets/js/oauth.js +++ b/assets/js/oauth.js @@ -73,7 +73,12 @@ const getTokenConfiguration = async endpoint => { // PKCE HELPER FUNCTIONS -// Generate a secure random string using the browser crypto functions +/** + * Generate a secure random string using the browser crypto functions + * + * @returns {Object} + */ + const generateRandomString = () => { const array = new Uint32Array(28); window.crypto.getRandomValues(array);