Skip to main content

A simple FastAPI application with authentication and user management

Project description

Fast_Auth

Fast_Auth is a simple FastAPI application with authentication and user management using MongoDB.

Features

  • User Signup
  • User Login
  • User Recover Password
  • Token-based Authentication

Installation

To install the package, use pip:

pip install fast_auth

Required Enviroment Variables

# MONGO DB
export MONGO_URI="mongodb://localhost:27017t"
export MONGO_DB_NAME="db_name"

# JWT
export SECRET_KEY="your_secret_key"
export ALGORITHM="HS256" 
export ACCESS_TOKEN_EXPIRE_MINUTES=30

Usage

To run the application, use the following command:

uvicorn fast_auth.main:app --reload

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fast_auth_routes-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fast_auth_routes-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file fast_auth_routes-0.1.0.tar.gz.

File metadata

  • Download URL: fast_auth_routes-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for fast_auth_routes-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6b2387af9802ebb031412425a91b4d0fdf46375eb7f8163d5cf0f314bf75fd67
MD5 2e5c425a5363c3f207f409f0f155a466
BLAKE2b-256 83888266780d704e5b742d14a592122887797b76846747c403463e2fd49ee5be

See more details on using hashes here.

File details

Details for the file fast_auth_routes-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for fast_auth_routes-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31e8f1d59a26243b0f2b6e842818395caebe512d643a8d0945af78305f13cbb9
MD5 5531db2db7bd82ad84c7378a38d663db
BLAKE2b-256 61aca074a4c72049448605363fc05fe6084e38381f78ac741f840d6c1f049d62

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page