refactor: use pipe

This commit is contained in:
2026-03-17 10:41:45 +01:00
parent c51860c2b1
commit 53ab8ef297

View File

@@ -4,6 +4,7 @@ import gleam/crypto
const key_length_bytes = 12
pub fn generate() -> String {
crypto.strong_random_bytes(key_length_bytes)
key_length_bytes
|> crypto.strong_random_bytes
|> bit_array.base64_url_encode(False)
}