An authentication table is a crucial component in Twidget that is used to store all necessary authentication information, essential for authenticating requests.
Purpose: To store authentication details such as email, password, token signature, and reset key.
Recommendation: It's recommended to use a users table for this purpose.
Mandatory for Endpoints: An authentication table is necessary for generating authentication endpoints.
Unique to Workspace: You can assign only one authentication table per workspace.
When creating a new table, you have an option to designate it as the authentication table:
You can also update an existing table to become an authentication table by adjusting its settings in the table configuration.
When you generate authentication endpoints, the following fields are automatically created in the authentication table:
email: Stores user email addresses.
password: Stores user passwords in a hashed format for security.
token_signature: Stores token signatures as hashed values for added security.
reset_key: Stores reset keys in a hashed format for password reset operations.
In the database view:
To summarize, the authentication table in Twidget:
Stores critical authentication data.
Is a prerequisite for generating authentication endpoints.
Introduces security features by hashing sensitive information.
Can be easily identified and configured within the workspace.
Filter Data
In Twidget, you can easily filter and sort data within the database tables view. This allows you to refine and manipulate the data as needed. Below are the steps and options available for filtering and sorting data. Filtering Data. To filter data: 1. Click on the Filter Button: In the table toolbar,...
Database Basics
Twidget offers a comprehensive database solution for all workspaces. Here's an overview of how databases are structured and managed within Twidget: Database Structure. 1. Tables: A database may contain multiple tables. Each table stores data in a structured format. 2. Fields: Tables consist of field...
CSV Import
Twidget enables seamless import of data from a CSV file into your database. Follow the steps below to successfully import a CSV file. Step-by-Step Guide. 1. Initiate the Import: - Click on the Import button within the table toolbar. - Select Import from CSV from the dropdown. 2. Open Import Dialog: ...
Generate CRUD Endpoints
With Twidget, you can efficiently generate CRUD (Create, Read, Update, Delete) endpoints for your database tables upon their creation. This functionality is designed to streamline the development process and ensure that essential API operations are readily available. Enabling CRUD Endpoints. 1. Crea...
Table Relationships
In Twidget, you can connect database table data using the `_id` field that is automatically generated for every row in a table. This `_id` field is essential for creating and maintaining relationships across different tables. Types of Relationships. A one-to-one relationship occurs when a single row...