// Required Basic Configuration
ApiKeyID: "<your-API-KEY-ID>",
Type: "PHONE", // EMAIL or PHONE
ContainerID: "cotter-container-signup",
RedirectURL: "https://yourwebsite.com/account/create",
IdentifierField: "phone",
// SET Token Cookie/localstorage here
window.localStorage.setItem("access_token", payload.access_token);
window.localStorage.setItem("refresh_token", payload.refresh_token);
window.location.href = "/signin";
CountryCode: ["+62"], // IT HAS TO BE AN ARRAY
ButtonBackgroundColor: "#000000",
ButtonTextColor: "#ffffff",
ButtonText: "Sign Up Now",
ButtonBorderColor: "#D2D3FF", // don't specify for no border
placeholder: "Enter your full name"
// Intercepting before authentication is processed
if (payload.identifier != "+12345678910") {
return "Phone Number is not allowed";
// Add WhatsApp option to send verification code
// (only for type = PHONE)
// ################################################
// # πPlease read the section about WhatsApp π #
// # to comply with WhatsApp's Policy #
// ################################################
PhoneChannels: ["SMS", "WHATSAPP"], // default = ["SMS"]
// WhatsApp Button Styling
ButtonWAText: "Continue with",
"Tell your customer that you'll be sending the verification code via WhatsApp",
ButtonWABackgroundColor: "#128C7E",
ButtonWABorderColor: "#075E54",
ButtonWATextColor: "#ffffff",
ButtonWALogoColor: "white",