What is the right code for this?

This is the code I used to handle login and logout. I want to know the right line to User to handle registrations o that the registration form can display to the users automatically.

Code:

export function logOut_click() {
wixLocation.to(“/home”)
wixUsers.logout();
}

export function login_click() {
wixUsers.promptLogin();
}

export function signUp_click() {
wixUsers.promptRegistration();
}

#WixCode_Help

Are you trying to do something like this - 'Prompt the current user to login with given options;
https://www.wix.com/corvid/reference/wix-users.html#promptLogin
https://www.wix.com/corvid/reference/wix-users.html#LoginOptions

Or something like this in your code:

wixUsers.promptLogin( {"mode": "signup"} )
//or
wixUsers.promptLogin( {"mode": "login"} )