Shipping Auth: Why I Built It Myself with FastAPI
Shipping Auth: Why I Built It Myself with FastAPI The platform now has a working authentication system. Users can register, log in, and get a personal dashboard tied to their account. Here’s what I built and why. What I shipped A FastAPI service that handles: POST /auth/register — creates a user record with a hashed password POST /auth/login — validates credentials, returns a signed JWT Token validation middleware used by all protected endpoints A session state pattern in Streamlit that stores the JWT and passes it on every API call The Streamlit app calls the FastAPI service on login. If the token is valid, you see the app. If not, you see the login screen. Simple. ...