A Blog full of Web Projects

A Blog full of Web Projects

Python FastAPI with PostgreSQL JWT Authentication using Refresh Token Renewal

14-July-2026

A production-style starter project showcasing secure JWT authentication with Refresh Token Renewal. It includes OpenAPI / Swagger, SQLAlchemy, Alembic, PostgreSQL, and is hosted on Vercel Cloud with Serverless Functions using a GitHub-based CI/CD workflow

The included Vue 3 SPA does not support silent authentication, and the users will also be logged out if refreshing the browser

Try the demo by OpenAPI...

Try the demo by Vue 3 SPA...

The project demonstrates how to build a secure REST API with FastAPI and PostgreSQL using modern JWT authentication, HTTPS, and automated database migrations

CI/CD is implemented with VS Code, GitHub, and Vercel Cloud

The Web API at GitHub

The Vue SPA at GitHub
A Blog made with Gatsby React and GraphQL