Twidget provides several built-in functions to enhance the security of your applications. Below is an overview of each security command, including its description, inputs, and outputs.
Description: Generates a unique identifier.
None
Description: Hashes the provided text using the bcrypt algorithm.
Description: Checks whether the provided raw text matches the hashed text.
raw_text: The raw text.
hashed_text: The hashed text.
Description: Generates a JWT Authentication token.
id: The user ID.
email: The user email.
expiration: The duration of the token's validity (in seconds).
Type: Object
token: The authentication token (Text).
expires_at: The expiration date of the token (Date).
signature: The token signature (Text).
Description: Returns information about the authenticated user.
None
Type: Object
_id: The user ID (Text).
created_at: The account creation date (Date).
email: The user email (Text).
These security commands are essential for managing authentication, securing user data, and protecting your application from unauthorized access.
Database
Twidget offers many commands to manage data in your database. Below is a list of the available commands and their functionalities: Get Data. Retrieve an entry from a table. Get Multiple Data. Retrieve multiple entries from a table. Save Data. Save an object to a database table. Save Multiple Data. S...
Send Message
Send SMS Command. With Twidget, you can send SMS messages to phones using the `Send SMS` command. This functionality varies depending on the provider. Currently, we support Twilio as the SMS provider. To use Twilio for SMS integrations, you will need: - A Twilio account ID - Twilio Auth Token - A Tw...
Conditionals
Condition Command. The Condition Command allows you to perform actions based on whether an expression evaluates to true or false. You can nest other commands within the true or false branches of the condition, enabling complex logic flows. - Expression Builder: Validate two variables to equal true. ...
Return
The `return` command in Twidget is a special command used to halt the current command workflow and immediately return a specified result. This command overrides any subsequent processes and outputs the return result regardless of the rest of the workflow logic. This command is particularly useful fo...
Variables
Variables are essential building blocks in Twidget that allow you to store and manipulate data dynamically within your no-code applications. They enable you to create flexible and interactive applications by holding values that can be changed and referenced throughout your workflow. Creating Variabl...