https://github.com/akashchandrasekar/authendication-authorization
Authendication & Authorization Task
https://github.com/akashchandrasekar/authendication-authorization
bcryptjs cors expressjs jsonwebtoken jwttoken mongoose nodejs nodemon
Last synced: 2 months ago
JSON representation
Authendication & Authorization Task
- Host: GitHub
- URL: https://github.com/akashchandrasekar/authendication-authorization
- Owner: Akashchandrasekar
- Created: 2024-11-18T04:10:28.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-11-18T05:23:46.000Z (7 months ago)
- Last Synced: 2025-01-26T08:26:34.544Z (4 months ago)
- Topics: bcryptjs, cors, expressjs, jsonwebtoken, jwttoken, mongoose, nodejs, nodemon
- Language: JavaScript
- Homepage: https://authendication-authorization-jxrj.onrender.com/
- Size: 3.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Authentication API
A simple Node.js application with JWT-based authentication.
## Features
- User registration
- User login with JWT
- Token-based authorization
- Protected routes## Installation
1. Clone the repo
2. Install dependencies: `npm install`
3. Add `.env` file with `MONGO_URI` and `JWT_SECRET`
4. Run the server: `npm start`## API Endpoints
- `POST /api/auth/register` - Register a new user
- `POST /api/auth/login` - Log in a user
- `GET /api/auth/me` - Get user info (protected)## overview postman link
https://web.postman.co/workspace/87ff17a0-e7e0-4064-87ca-1d9a2f74a0d2/documentation/39168683-49761e6b-6aef-46c4-b03a-0dbd92858266