- Project Description
- Technologies Used
- Setup
- Running the Project Locally
- API Endpoints
- Results
- License
This repository provides endpoints to interact with an external API for authentication purposes. It includes the following functionalities:
- Login: Authenticates users and retrieves access tokens.
- Logout: Logs users out and invalidates their sessions.
- AutoLogin: Automatically logs users in based on stored credentials.
- Token Info: Retrieves information about a given JWT token.
- Hono
- Node.js
- TypeScript
- AWS Lambda
-
Clone the repository:
git clone https://github.com/codehass/hono-proxy-backend.git cd hono-proxy-backend.
-
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
The backend should now be running on
http://localhost:3000
(or the port specified in the console).
- GET /login - User login
- POST /autoLogin - User autoLogin
- POST /logout - User logout
- POST /token_info - User token info
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.