Optional authorization hook for SafeRPC requests.
@callback authorize(map(), term()) :: :ok | {:error, term()}