arminshfatemi / fastapi_cookie_auth

A FastAPI project for authenticate user with cookie and JWT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cookie base authenticate with FastAPI

Overview

In this project i'm trying to make a pure jwt authentication in fastapi and mongodb .

Purpose of this project is just for training and there is alot of packages to do jwt authentication or other things i have done here

How to Run

  1. First clone the project and cd to project directory
git clone <url of the project>
cd Password-generator
  1. Make a python virtual env
python3 -m venv <name of your venv>
  1. Activate your venv

on linux

source ./venv/bin/activate

on windows

venv/bin/activate
  1. Install the python packages
pip install -r requirements.txt
  1. Run the file
uvicorn main:app --reload

About

A FastAPI project for authenticate user with cookie and JWT


Languages

Language:Python 100.0%