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