Skip to main content

flyfun-common

Shared user management and authentication library for flyfun services.

Provides OAuth login (Google, Apple), JWT session management, user database models, and API token administration — all as reusable FastAPI components.

Installation

pip install flyfun-common

Usage

from fastapi import FastAPI
from flyfun_common.auth import create_auth_router
from flyfun_common.db import init_db

app = FastAPI()

# Initialize database
init_db()

# Mount the auth router
app.include_router(create_auth_router())

Configuration

All configuration is via environment variables:

Variable Required Description
JWT_SECRET Production Secret key for signing JWT tokens
DATABASE_URL No SQLAlchemy database URL (defaults to local SQLite)
ENVIRONMENT No production or development (default)
COOKIE_DOMAIN No Cookie domain for cross-subdomain SSO
GOOGLE_CLIENT_ID No Google OAuth client ID
GOOGLE_CLIENT_SECRET No Google OAuth client secret
APPLE_CLIENT_ID No Apple Sign In service ID
APPLE_TEAM_ID No Apple Developer Team ID
APPLE_KEY_ID No Apple Sign In key ID
APPLE_PRIVATE_KEY No Apple Sign In private key (PEM)
CREDENTIAL_ENCRYPTION_KEY Production Fernet key for encrypting stored credentials

License

MIT

Metadata

Release files for flyfun-common 0.6.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flyfun-common 0.6.11
File Size Uploaded
flyfun_common-0.6.11.tar.gz 58.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flyfun-common 0.6.11
File Interpreter ABI Platform
flyfun_common-0.6.11-py3-none-any.whl Python 3 none any Details

Total release size: 131.2 kB

Release files / flyfun_common-0.6.11.tar.gz

Download URL flyfun_common-0.6.11.tar.gz
Size 58.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dc132f95ec43f5c5b073228ed48ed0619aaac72b62066fde7d11e1dc22a95e6c
BLAKE2b-256 checksum
How to use checksums
58d12bc1aab1421bf16db3f826df819bad80705dc31ab31e3d22a2243186409b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Release files / flyfun_common-0.6.11-py3-none-any.whl

Download URL flyfun_common-0.6.11-py3-none-any.whl
Size 72.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d254a104fb61595f1c054a9ec67a070b7003d9b3c16bd27a08a6cfdbf4e722a5
BLAKE2b-256 checksum
How to use checksums
1adfa9c80b2a1bf9b295d126d3fb1ff8f56d3b2023520ee836afd4ce4171c53b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.11

Release history Release notifications | RSS feed

0.6.12

2 release files

This release

0.6.11 This release

2 release files

0.6.10

2 release files

0.6.9

2 release files

0.6.8

2 release files

0.6.7

2 release files

0.6.6

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.3

2 release files

0.5.0

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.11

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page