FastAPI
Learn how to integrate Wristband with your FastAPI application.
This quickstart guide will walk you through how to integrate your FastAPI application with Wristband using the Backend Server Integration Pattern.
Goals
After completing this guide, you will have learned to do the following:
- Integrate your FastAPI backend with Wristband utilizing Wristband's FastAPI Auth SDK.
- Implement session management with your FastAPI backend.
- Connect a React frontend to your FastAPI backend utilizing Wristband's React Client Auth SDK.
- Implement Cross-Site Request Forgery (CSRF) protection.
- Handle refreshing expired access tokens.
Prerequisites
- Python (version 3.9 or later)
- FastAPI version 0.100.0+.
- Node.js (v18.x or later)
- A package manager such as npm, yarn, or pnpm
- React (vanilla or NextJS)
Set Up FastAPI
If you are starting your app from scratch, you will need to set up a FastAPI project by following their installation documentation.
Updated about 8 hours ago
What’s Next
After your FastAPI project is set up, you'll need to install the Wristband Auth SDK.