chore: method signatures for getRandomString method

This commit is contained in:
jamesgeorge007
2020-01-11 13:16:57 +05:30
parent 80f7d3120a
commit 4ce673acfd

View File

@@ -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);