Sign Up

Creating Authentication Endpoints

-

Follow these steps to create authentication endpoints in Twidget:

Step-by-Step Guide

  1. Navigate to API Tab:

    • Go to the API tab in your Twidget dashboard.
  2. Create New Endpoints:

    • Click on the Create Endpoints button located at the top right corner.
  1. Select Authentication:

    • In the newly opened sidebar, select Authentication. This will enable various authentication endpoints.

Prerequisite

Before creating authentication endpoints, ensure you have an authentication table set up. This table will store all user and authentication data.

  • Select Authentication Table: Choose the authentication table where user and auth data will be stored.

  • Set Starting Path: Define the base path you want to prepend to all the endpoints.

Available Authentication Endpoints

Once the authentication option is selected, you will see the following 7 endpoints ready to be generated:

  1. /auth/signup: Endpoint for user signup.

  2. /auth/login: Endpoint for user login.

  3. /auth/me: Retrieve user details.

  4. /auth/logout: Invalidate the current authentication token.

  5. /auth/update-password: Update the user's password.

  6. /auth/forgot-password: Send password reset key via email.

  7. /auth/reset-password: Update the password using the reset key.

Each authentication endpoint comes pre-configured with necessary inputs, outputs, and command steps required to accomplish its task. However, you can edit these configurations as per your requirements.

Related Topics

Endpoint Inputs

In Twidget, endpoints have a variety of input types that can be used to configure and execute API requests. These input types include queries, headers, body, files, and path inputs. Each input type serves a specific purpose in allowing users to interact with APIs efficiently. Files. The files input ...

Generate CRUD Endpoints

What are CRUD Endpoints?. CRUD stands for Create, Read, Update, Delete. These are the basic operations required to manage data in a database. Each operation corresponds to a specific HTTP method: - Create: Adds new data (HTTP POST) - Read: Retrieves data (HTTP GET) - Update: Modifies existing data (...

What is an API

An API (Application Programming Interface) is a set of rules and protocols that allows different software applications to communicate and interact with each other. It defines the methods and data formats that applications can use to request and exchange information, services, or functionalities from...

Create File Endpoints

Overview. Twidget allows you to create file endpoints, which enable you to manage files in your file store. This feature is designed to streamline your workflow by providing predefined endpoints for common file operations. Creating File Endpoints. To create a file endpoint in Twidget, follow these s...

Endpoint Basics

An endpoint refers to a specific URL (Uniform Resource Locator) that a client can access to interact with the API and perform various operations. Endpoints act as gateways that allow clients (such as web or mobile applications) to communicate with the server hosting the API and perform actions like ...