Defines a behavior for parsing a launch claim's raw value.
Register a module implementing this behavior, or a 1-arity function
with the same contract, under :claim_parsers. See
Custom Claim Parsers.
defmodule MyApp.AnalyticsClaim do
use Ltix.LaunchClaims.Parser
@impl Ltix.LaunchClaims.Parser
def parse(%{"session_id" => session_id}), do: {:ok, session_id}
def parse(_value), do: {:error, "missing session_id"}
end