Deleting failure prompt in pamusb & pamusb_agent

hey chat,
recently I downloaded PAM_usb to authenticate logins & sudo using my USB pendrive but there’s a tiny inconvenience, whenever i use sudo without my pendrive it prompts an error message which is obvious like? i know i havent inserted my pendrive so is there any way to delete these prompts

and im also looking for a way to make ‘pamusb-agent’ work,
thanks

The configuration of pam_usb mentions an option called quiet which is described as Quiet Mode.

If I understood correctly, this option can be assigned per user in the configuration file (/etc/security/pam_usb.conf by default).

Maybe this is what you’re looking for.

Check here for some examples:
https://www.pamusb.org/doc/configuration.html

The Arch Wiki can also be helpful:
https://wiki.archlinux.org/title/Pam_usb