flwr_oauth2/helpers

Helper functions

Values

pub fn add_if_present(
  d: List(a),
  value: option.Option(a),
) -> List(a)

Appends the value if present a given list

pub fn add_many_if_present(
  d: List(a),
  value: option.Option(List(a)),
) -> List(a)
pub fn encode_redirect_uri(
  value: option.Option(uri.Uri),
) -> option.Option(#(String, String))
pub fn generate_random_string(
  chars chars: String,
  length length: Int,
) -> String

Generates a random string from a given list of characters with a given length

pub fn unwrap_both(res: Result(a, a)) -> a
pub fn wrap_tuple(name: a, value: b) -> #(a, b)
Search Document