Concepts
Core concepts
Section titled “Core concepts”generateKey(options) returns a random bearer string. An optional prefix adds
<prefix>_ before the random portion. length controls the random portion’s
length. hashKey(key) returns its SHA-256 digest as lowercase hexadecimal.
generateKeyAndHash(options) creates both values and returns { key, digest }.