View Source CozyLark.EventSubscription.Opts (cozy_lark v0.4.1)

Currently, only option security_verification_method is supported.

available-options

Available options

  • security_verification_method - specify the method to verify that the event is sent by Lark Open Platform and not a forgery.

Link to this section Summary

Link to this section Types

@type opts() :: [
  {:security_verification_method,
   :verification_token | {:signature, signature_factors()}}
]
@type signature_factors() :: %{
  raw_body: String.t(),
  timestamp: String.t(),
  nonce: String.t(),
  signature: String.t()
}
@type t() :: %CozyLark.EventSubscription.Opts{
  security_verification_method:
    :verification_token | {:signature, signature_factors()}
}

Link to this section Functions

Link to this function

validate_opts!(opts, config)

View Source
@spec validate_opts!(opts(), CozyLark.EventSubscription.Config.t()) :: t()