refactor: use pipe
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user