TilmeldBeforeRegisterCallback: ((user: User & UserData, data: {
    additionalData?: {
        [k: string]: any;
    };
    password: string;
}) => Promise<void>)

This is run before the user data checks, so the only checks before are whether registration is allowed and whether the user is already registered.