Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Auth API (Hono + JavaScript)

This project is a simple authentication API built with Hono using an in-memory user store.

Install

bun install

Run

bun run dev

Server URL:

http://localhost:3000

API Endpoints

GET /users

Returns all users.

GET /users/:id

Returns one user by id.

If user is not found, returns:

{ "error": "User not found" }

POST /signup

Creates a new user.

Request body:

{
  "name": "John Doe",
  "email": "john@example.com",
  "password": "123456"
}

POST /signin

Logs in a user with email and password.

Request body:

{
  "email": "john@example.com",
  "password": "123456"
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages