I think you can already get what you want by using the following in your Rodauth configuration:
otp_qr_code do
RQRCode::QRCode.new(otp_provisioning_uri).as_svg(:module_size=>8, :viewbox=>true)
end
Will that work for you currently?
In terms of possible improvements, I could make the options passed to as_svg configurable, so you could do the following and be able to override less:
otp_qr_code_svg_opts do
{:module_size=>8, :viewbox=>true}
end
I can also look at making :viewbox=>true the default. If there are any backwards compatibility issues, it might have to wait until the next major version though.
Thanks,
Jeremy