# Express Authentication Service
This project provides a REST API using Express and Passport.js for authentication with Bearer tokens.
## Requirements
- Node.js
- npm
## Installation
1. Clone the repository:
```sh
git clone https://github.com/9ani/quant_back.git
cd quant_back- Install dependencies:
npm install- Create a
.envfile with the following content:
PORT=3000To start the server:
npm startThe server will be running at http://localhost:3000.
Request body:
{
"email": "user1@example.com",
"password": "password1"
}Response (success):
{
"accessToken": "mockToken1"
}Response (failure):
{
"message": "Invalid email or password"
}Requires a valid Bearer token. Use the accessToken obtained from /login.
Response (success):
{
"email": "user1@example.com",
"username": "user1"
}Response (failure):
{
"message": "Invalid token"
}- Email: user1@example.com, Password: password1, Token: mockToken1
- Email: user2@example.com, Password: password2, Token: mockToken2