← Back to docs

API Reference

Module: main.py
Application: pkg.bio

This document outlines the routes and core logic of main.py, the primary application module for pkg.bio. All routes follow the principles of authenticated user profile management and safe public viewing.

1. Authentication Routes

2. Profile Setup & Editing

3. Public Pages

4. Developer Testing Routes

5. Internal Helpers

6. Token Refresh Middleware

@app.before_request – Checks for and refreshes expired Supabase access tokens using a stored refresh token.

7. Environment Requirements