Fixed typos + improved clarity and detail of some JSDoc

Apply suggestions from code review

Co-authored-by: Nelson Chan <chakflying@hotmail.com>
This commit is contained in:
Matthew Nickson
2022-06-02 16:40:56 +01:00
committed by GitHub
parent 0e28707307
commit a927f5cd15
4 changed files with 8 additions and 8 deletions

View File

@@ -314,9 +314,9 @@ export function getCryptoRandomInt(min: number, max: number):number {
}
/**
* Generate a secret
* @param length Lenght of secret to generate
* @returns
* Generate a random alphanumeric string of fixed length
* @param length Length of string to generate
* @returns string
*/
export function genSecret(length = 64) {
let secret = "";