This means your API key or hostname is incorrect. Verify the API key for your project, and follow the previous thread if it's a local setup.
If you are doing a local setup, use 'localhost', and if that doesn't work, '127.0.0.1' should do the trick.
You can change the button background colour from the developer dashboard under the design tab which also includes more customization. There is currently no option to customise the border, and we are working on more customization options.
You will have to use the useEffect hook.
The OTP resend option automatically becomes available after 2 minutes.
There is a default session cooldown set for all projects, which can be changed under Dashboard > Advanced Configuration
Please check the Advanced Customization page under Dashboard
For now, only RGB input is allowed. You can however use the colour palette provided to do the same
We remove the form programmatically after successful login, however, the container created to host the form is not removed, you can just remove it by using the following snippet:
var sawoContainer = document.getElementById("sawo-container");
The sessions are not persistent. Logging out can be implemented by adjusting the session cooldown under Dashboard > Advanced Configuration
SAWO returns a payload after successful login from the user based on the identifier type you are using in your project. For example:
You can get this from console.log from the payload.
Please go to the project section on the dashboard and select the project that needs to be deleted. On the bottom left corner of the selected project, there is a "red trash" icon. Click on that to delete a project.
If authentication is successful, you will receive a non-empty payload, after which you can redirect to any page you want. An example of a non-empty payload is
If the payload returned is empty, please check for errors in the authentication.