Skip to main content

Module token

Module token 

Source
Expand description

Random secrets (dashboard auth token, approval and login-session ids).

Functionsยง

constant_time_eq
Equality that does not stop at the first differing byte.
generate
A fresh 256-bit token, hex-encoded.
random_hex
bytes bytes from the OS CSPRNG, hex-encoded (so 2 * bytes characters).