Pamac build hangs when password prompt times out

From what I’ve been reading (years-old threads, though) it seems the password authentication timeout is hard-coded within Polkit, or at least it was back then.

There is a thread on here which might be relevant:

I also found this:
https://wiki.archlinux.org/title/Polkit
— see section 3.4, although I wouldn’t normally recommend doing that.