https://github.com/djimenezweb/hono-auth
Basic authentication system built with Hono
https://github.com/djimenezweb/hono-auth
bcrypt hono jwt node prisma typescript
Last synced: 3 months ago
JSON representation
Basic authentication system built with Hono
- Host: GitHub
- URL: https://github.com/djimenezweb/hono-auth
- Owner: djimenezweb
- License: mit
- Created: 2024-12-05T13:18:16.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-03-25T20:02:44.000Z (over 1 year ago)
- Last Synced: 2025-03-25T21:22:00.533Z (over 1 year ago)
- Topics: bcrypt, hono, jwt, node, prisma, typescript
- Language: TypeScript
- Homepage:
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Hono Auth
Basic custom username/password auth system.
This is a replica of the [MERN Auth](https://github.com/djimenezweb/mern-auth) server, but using **Prisma/SQLite** and **Hono** instead of Mongo and Express.
- Session based
- Role authorization (user, admin)
- Authenticated users can log in and see their own open sessions.
- Admins can delete users, invalidate sessions and close other user's sessions.
## Back End
- Node.js + Hono
- TypeScript
- Prisma & SQLite
- Zod validation
- Refresh and Access Tokens
- Hashed passwords
- HttpOnly Cookies
- Custom middleware
- Custom error handler
- Protected endpoints
- Auto delete expired sessions from database
## Front End
- Front End code at [MERN Auth repository](https://github.com/djimenezweb/mern-auth)
- Vite + React + TypeScript
- Shadcn/ui
- Tailwind CSS
- Icons: [Lucide](https://lucide.dev/) + [react-icons](https://react-icons.github.io/react-icons/)
- Fonts: [Jost](https://indestructibletype.com/Jost.html) + [JetBrainsMono](https://www.jetbrains.com/lp/mono/)
## License
Licensed under the MIT License. Check the [LICENSE](./LICENSE.md) file for details.