Preventing member login before email approval

In my website I set up a custom signup and login pages.
I want users to be able to log-in to my site only after they confirmed their email by clicking on a link in a triggered email that I sent them.
I have no problem sending the email with an approval token once the user registered thanks to a very useful explanation by @givemeawhisky here: https://www.wix.com/corvid/forum/community-discussion/register-a-user-sending-an-email-for-confirmation-1.

My problem is that whether the user is approved by clicking the email or not, he/she can still log in to the website.

Once the users click the link in the email they are redirected to a verification page with this code:

import wixLocation from 'wix-location';
import wixUsers from 'wix-users';
import {doApproval} from 'backend/register';

$w.onReady( () => {
 let token = wixLocation.query.token;
    doApproval(token)
    .then((result) => {
 if (result.approved){
        wixUsers.applySessionToken(result.sessionToken);
        console.log("Approved");
    }
 else {
            console.log("Not approved!");
        }
    });
});

/***************************************
in backend/register
**************************************/
export function doApproval(token) {
 return wixUsers.approveByToken(token)
    .then((sessionToken) => {
          return {sessionToken, "approved": true};
    })
    .catch((error) => {
          return {"approved": false, "reason": error};
    });
}

Is there any way for me to know if the user trying to log in was approved this way?

Thanks.

In your backend call:
import wixUsersBackend from ‘wix-users-backend’ ;

And in ur dashboard go to ur members list:
https://support.wix.com/en/article/approving-a-site-member

Finally, click in MoreActions → SignupSettings
Then it will open a popup

Who can be a member of your site?
( )Everyone who signs up
(X)Only people who I approve manually

Select “Only people who I approve manually”

I tried that before and this is actually very problematic if you do it while using the wixUsersBackend function emailUser.
The thing is that this function only works if the user is logged in.
So if you disable the immediate approval the user does not count as logged-in right after registration (and therefore does not get an email).
What I did eventually that worked was I disabled the immediate approval but used the function wixCrmBackend.emailContact() which works for non logged in users.
To do that I used:

import wixCrmBackend from 'wix-crm-backend';