Skip to content

Authentication

Description

The Authentication API enables users to securely log in, manage their credentials, and retrieve their profile information. It includes endpoints for user login, password recovery, and profile retrieval.

Key Features:

  • User Login: Authenticate users and generate a JWT token.
  • Google Authentication: Support for social login via Google for Merchants and Customers.
  • Passwordless Authentication: Secure login via Email magic links and WhatsApp OTPs.
  • Forgot Password: Allow users to request a password reset.
  • Reset Password: Enable users to update their password using a reset token.
  • Retrieve User Profile: Fetch user profile details.

Headers Requirement:

  • All authentication-related endpoints require the X-MerchantApiKey header except for retrieving the user profile.
  • The Authorization header must be included for protected requests.

Next Steps

Build with joy