From 4ce673acfd527b2b9a0f1a38adf3541b61f049fb Mon Sep 17 00:00:00 2001 From: jamesgeorge007 Date: Sat, 11 Jan 2020 13:16:57 +0530 Subject: [PATCH] chore: method signatures for getRandomString method --- assets/js/oauth.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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);