View Source LemonEx.Webhooks (lemon_ex v0.1.6)

Link to this section Summary

Functions

Generate a random signing secret with an optional length. The length must be between 8 and 40.

Link to this section Functions

Link to this function

gen_signing_secret(length \\ 40)

View Source

Generate a random signing secret with an optional length. The length must be between 8 and 40.

Uses the same logic to generate a random string as Phoenix. See: https://github.com/phoenixframework/phoenix/blob/3b9fca11b6a4d6a61ac3ca9163b876e9cdd11dc7/lib/mix/tasks/phoenix.gen.secret.ex#L26