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.
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. ...
Send External HTTP Request
Using Twidget, you can send external HTTP requests effortlessly. This functionality allows you to communicate with external servers or APIs. Below, you will find the necessary parameters and structure to set up an HTTP request. Parameters. - URL: The endpoint to which the request will be sent. - Met...
Date
Twidget offers a variety of commands to manipulate date objects. Below are the available commands along with their respective descriptions, inputs, and outputs. Current Date. Description: Returns the current date and time. Output: - Type: DATE Add Time. Description: Returns the date plus a specified...
Local Storage
Twidget provides a set of local storage commands that enable interaction with the browser’s `localStorage` API through a no-code interface. These commands are useful for storing, retrieving, and managing key-value data persistently within the current domain context. Purpose. These commands abstract ...
Managing Files
Twidget offers a set of commands to manipulate files in your file store. Below are the descriptions and usage of each command to help you understand how to utilize them effectively. Get File. Retrieve a file via file path. Inputs: - `path`: The file path to retrieve the file from. Outputs: - `filena...