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

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

Authentication

Twidget supports Bearer Authentication to ensure secure access to your endpoints. You can specify which endpoints should be secured or open. Once secured, an endpoint can only be accessed using a valid Bearer Token, which is generated via our API. Additionally, we provide functionality to generate 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 (...

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