"secret_fuz_token_" Prefix for all fuz API tokens (enables secret scanning).
API token generation and hashing utilities.
Tokens use the format secret_fuz_token_<base64url> and are stored
as blake3 hashes. These are pure cryptographic operations with no
framework dependency — the bearer auth middleware that validates
tokens lives in bearer_auth.ts.
3 declarations
"secret_fuz_token_" Prefix for all fuz API tokens (enables secret scanning).
(): { token: string; id: string; token_hash: string; } Generate a new API token with its hash and public id.
The raw token is returned exactly once — callers must present it to the user immediately.
{ token: string; id: string; token_hash: string; } the raw token, a public id, and the blake3 hash for storage
(token: string): string Hash an API token for storage using blake3.
tokenthe raw API token
stringstring hex-encoded blake3 hash