Skip to content

alielbashir/flask-token-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flask Token Authentication

An implementation of Token authentication in Flask using Json Web Tokens

Overview

Instead of the traditional approach of database-stored token authentication, JWTs allow for authentication without the need for persisting tokens and querying a database, saving storage space and response time.

Classic approach

Classic sequence diagram

JWT-based approach

JWT sequence diagram

Setup

  1. Clone the library
git clone https://github.com/alielbashir/flask-token-auth
  1. Download the app's dependencies
python -m pip install -r requirements

Usage

Run the server

python app.py

About

JWT-based token authentication

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages