You are not logged in.
There're a lot of things in systemd that a lot of people would deem bugs.
This behaviour is due to systemd-logind's ProtectHome setting. Disabling it makes systemd not ask for authentication when using /home/swapfile.
Thank you for your time seth.
Offline