import Sequenzy from "sequenzy";
const client = new Sequenzy("YOUR_API_KEY");
const { data, error } = await client.widgets.preferences.generateToken({
email: "user@example.com",
});
if (data) {
// Use the token in your frontend iframe
const widgetUrl = `https://sequenzy.com/embed/preferences?token=${data.token}`;
}