I was given this code to create a button for users to sign out on the site. However the button I created is in a lightbox. Does anyone know if I need to add additional code for this to work when the button is in a lightbox and not on a main page/header?
import { authentication } from “wix-members”
$w . onReady ( function () {
$w ( “#signoutButton” ). onClick (() => {
authentication . logout ()
})
});