Auth

Login User

Login user with email OR username - Now sets secure httpOnly cookies

post/api/auth/login

Request

  • Base URL: https://alpha-bazaar-signal-server.onrender.com
  • URL: https://alpha-bazaar-signal-server.onrender.com/api/auth/login
  • Auth: none required

Request body

emailstring required
passwordstring required

Response

Successful Response

successboolean required
userunknown required
access_tokenstring required
token_typestring

Example response

{
  "access_token": "eyJhbGciOiJIUzI1NiIs...",
  "success": true,
  "token_type": "bearer",
  "user": {
    "email": "trader@example.com",
    "id": "abc-123",
    "username": "signal_pro"
  }
}

Changes

No recorded changes to this operation across all 2 revisions of this API.