chore: method signatures for getRandomString method
This commit is contained in:
parent
80f7d3120a
commit
4ce673acfd
1 changed files with 6 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue