Issue with Opening Login Lightbox After Logout

Hello,

I am encountering an issue when attempting to open the login Lightbox using authentication.promptLogin(); after a member logs out. Despite trying several approaches below, the login Lightbox does not open following the logout process. Could you please provide assistance or guidance on how to resolve this?

Thank you.

authentication.logout();
authentication.promptLogin();
await authentication.logout();
await  authentication.promptLogin();
authentication.logout();
        setTimeout(() => {
          authentication.promptLogin();
        }, 10000);

most browsers will block pop ups unless they are triggered by a click action. So maybe you can trigger this on the logout button ?

Thank you for your response.

I am using the logout function within the sign-up Lightbox because the requirement is to log out the member immediately after signing up. The member then needs to log in again to verify their account using an account number sent to their email during the registration process.