Skip to content

Commit

Permalink
Merge branch 'master' of github.com:digitallyinduced/ihp
Browse files Browse the repository at this point in the history
  • Loading branch information
mpscholten committed May 18, 2024
2 parents 7116323 + d391ccb commit a64b784
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion exe/IHP/CLI/NewSessionSecret.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,8 @@ main :: IO ()
main = withUtf8 do
(string, _) <- ClientSession.randomKey
let encoded = Base64.encode string
ByteString.putStr encoded

-- Create a ByteString from a newline character.
let newline = Char8.pack "\n"
-- Append newline to encoded output and print, so it won't print `%` as a suffix on certain terminals.
ByteString.putStr (ByteString.append encoded newline)

0 comments on commit a64b784

Please sign in to comment.