Unable to use registration app Unable to set user email: Invalid API token

Hello. I am running Nextcloud on Debian 11 dedicated server. I have installed the registration app but it doesn’t work at all. It sends the verification email correctly but when someone tries to complete their registration, it sais
Unable to set user email: Invalid API token.
I am using apache 2, I would post error logs but their aren’t any, neither from Nextcloud or apache2.