Urgent Help Neded: "permission_denied" error

Hi,

I am running these two lines of code in the backend:

registration = await authentication . register ( userinfo.email , userinfo.password , options );
await authentication . approveByToken ( registration.approvalToken );

However, the second line crashes with the following error:

Error: message: ‘permission_denied, details: {}: Forbidden’ details: applicationError: description: Forbidden code: FORBIDDEN data: {}

It used to work fine for a long time, but it suddently stops working with this error… Does anybody have a clue? Any advice would be really appreciated.