This guide is for laptops where the fingerprint reader doesn't work out of the box with the Linux kernel and needs a separate driver.
First, run lsusb to find the VID:PID of your fingerprint module.

In my case, it's 2808:a658.
Check if a driver exists for your device.
I found that for 2808:a658, the package libfprint-ft9366 from the AUR works.
You can verify this with a quick search or by asking ChatGPT.
Install the driver:
paru -S libfprint-ft9366
Enroll your fingerprint:
fprintd-enroll
Test the scan:
fprintd-verify
sudoEdit the PAM config for sudo:
sudo nano /etc/pam.d/sudo
Replace:
#%PAM-1.0
auth include system-auth
account include system-auth
session include system-auth
With:
#%PAM-1.0
auth sufficient pam_fprintd.so
auth include system-auth
account include system-auth
session include system-auth
Your pam file might look different. Main point is to add that line above auth.
Now your fingerprint should work for
sudo.