• Get the authenticity token, this should be used to send it in a submit.

    Returns string

    let token = useAuthenticityToken();
    let submit = useSubmit();
    function sendFormWithCode() {
    submit(
    { csrf: token, ...otherData },
    { action: "/action", method: "post" },
    );
    }