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

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...

API Settings

The API settings in Twidget enable you to customize your APIs to fit your requirements. Here’s how you can do it: Configure. 1. Navigate to the API page. 2. Click on the Settings button located at the top-right corner. This will open a sidebar where you can configure various settings for your API. A...

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 (...

Custom Endpoints

In addition to generating CRUD (Create, Read, Update, Delete), authentication, and file management endpoints, Twidget allows you to create completely custom endpoints from scratch. These custom endpoints give you full control over the various aspects of endpoint configuration, including the inputs, ...

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 ...