Generate Login Page
Generate a login page for customer sign-in.
Recorded with an earlier Twidget interface. Names, control locations and available options may differ; use the linked documentation for current guidance.
Watch tutorial (2:22)
Generate a login page for customer sign-in.
Recorded with an earlier Twidget interface. Names, control locations and available options may differ; use the linked documentation for current guidance.
Watch tutorial (2:22)This documentation outlines the process of generating a login page using Twidget, a no-code API development platform designed to facilitate user authentication functionalities seamlessly within applications.
The main objective of generating a login page is to enable user authentication by storing users' credentials and managing their sessions through secure token storage in the browser's local storage. This feature supports access control and personalizes user experience across the application.
User Authentication Table: The foundational database entity that stores user records and manages sign-in information.
Login Endpoint: A designated API endpoint created for handling login requests. It processes user credentials, validates authentication, and delivers an authentication token upon successful login.
Local Storage: A web storage mechanism utilized to persist authentication tokens, facilitating subsequent user authentications without requiring repeated logins.
Endpoint Creation:
Page Configuration:
User Interface Elements:
The generated login page includes:
Input fields for email and password.
Message blocks for displaying success or error notifications.
A login button to submit user credentials.
The page also includes variables managing UI state, reflecting login process status and user feedback.
Submission Handling:
Token Management:
Upon successful authentication, the token received from the server is stored in local storage, enabling the application to authenticate requests made by the user in subsequent sessions.
A navigation command can be added to redirect users to a designated page after successful login, enhancing user experience.
The login page generation feature in Twidget streamlines user authentication setup, ensuring that applications can effectively manage user sessions with minimal coding. By utilizing API endpoints and integrating with local storage, developers can enhance their apps' user experience while maintaining robust security practices.
Element States
Element states are fundamental attributes that define how elements visually respond to user interactions within the Twidget no-code API platform. Each element, such as buttons, input fields, or cards, can exist in multiple states, each with unique visual characteristics that enhance the user experie...
Access Path Parameters in a Page
Path parameters play a crucial role in enabling dynamic and targeted content retrieval within the Twidget no-code API platform. This documentation outlines the fundamental concepts of path parameters, their implementation in Twidget pages, and their utility in enhancing page interactivity and config...
Page tables
Use a Table element to show a list of records with search, sortable headings and paging. Choose an existing Table page creation option, add a Table element in the editor, or start with a [Page starter](/docs/pages/page-starters). Find the right element. Select the table on the canvas or in Layers. T...
Page Overview
Twidget provides a robust mechanism for creating web pages accessible via a browser. This feature enables users to build various types of pages using a no-code interface, enhancing the platform's developer experience. Key Concepts. Open Pages and choose Create Page. The available starting points inc...
Page starters
Page starters give you a useful first layout for a records tool, customer view or operational dashboard. Start with clearly labeled demonstration data, customize the page, then connect the endpoints your customers are allowed to use. Choose a starting point. Open Pages, choose Create Page, then Page...