Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

rolling-my-own-auth

A simple project to understand how authentication systems work by building one completely from scratch using Bun and native Bun packages.

Overview

This project is focused on learning the fundamentals of authentication rather than building a production-ready system or polished UI.

Features

  • User registration with email and password
  • User login with email and password
  • Session management using Redis-stored session tokens
  • Rate limiting to prevent abuse

Technologies Used

  • Bun – JavaScript runtime and package manager
  • PostgreSQL – Database for persistent user data
  • Redis – In-memory store for managing session data

Possible Improvements

  • Add email verification during registration
  • Use HTTPS for secure communication
  • Implement refresh tokens for long-lived sessions
  • Switch to JWT-based session tokens for stateless authentication

Notes

This project is intended for educational purposes only and is not recommended for production use.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages