{"id":14064724,"url":"https://github.com/jod35/JWT-Auth-for-Flask","last_synced_at":"2025-07-29T18:33:51.792Z","repository":{"id":190771582,"uuid":"683309740","full_name":"jod35/JWT-Auth-for-Flask","owner":"jod35","description":"A repo I wrote demostrating how to implement JWT Authentication for Flask REST APIs","archived":false,"fork":false,"pushed_at":"2024-02-13T13:16:39.000Z","size":17,"stargazers_count":16,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-01T03:41:10.938Z","etag":null,"topics":["flask","flask-jwt-extended","flask-sqlalchemy","jwt-authentication"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/playlist?list=PLEt8Tae2spYmugodsDflw5U8zp1yzSPgU","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jod35.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-08-26T06:40:25.000Z","updated_at":"2024-09-07T14:00:06.000Z","dependencies_parsed_at":"2023-08-26T09:22:47.945Z","dependency_job_id":"5f80441f-30a4-4f22-b458-f2b62b11772d","html_url":"https://github.com/jod35/JWT-Auth-for-Flask","commit_stats":null,"previous_names":["jod35/jwt-auth-for-flask"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jod35%2FJWT-Auth-for-Flask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jod35%2FJWT-Auth-for-Flask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jod35%2FJWT-Auth-for-Flask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jod35%2FJWT-Auth-for-Flask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jod35","download_url":"https://codeload.github.com/jod35/JWT-Auth-for-Flask/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228040826,"owners_count":17860211,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","flask-jwt-extended","flask-sqlalchemy","jwt-authentication"],"created_at":"2024-08-13T07:04:02.425Z","updated_at":"2024-12-04T03:31:23.751Z","avatar_url":"https://github.com/jod35.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# JWT Authentication for Flask\nThis is source code for a video I made when demonstrating how to implement JWT Authentication for Flask REST APIs. This videos series walks through the following.\n- Project SetUp\n- Database Management with Flask-SQLAlchemy\n- User Account Creation\n- JWT Authentication with Flask-JWT-Extended\n\n\n# How to run the project\n1. Clone the repository\n```bash\ngit clone https://github.com/jod35/JWT-Auth-for-Flask.git \u0026\u0026 cd JWT-Auth-for-Flask.git/\n```\n\n2. Install requirements\n```bash\npip install requirements.txt\n```\n\n3. Create a `.env` file and set environment variables\n```\nFLASK_SECRET_KEY=\u003cyour-secret-key\u003e\nFLASK_DEBUG=\u003cyour-debug-boolean-value\u003e\nFLASK_SQLALCHEMY_DATABASE_URI=\u003cyour-sqlalchemy-db-uri\u003e\nFLASK_SQLALCHEMY_ECHO=\u003cyour-sqlalchemy-echo-value\u003e\n```\n\n4. Create a `FLASK_APP` environment variable. \n```bash\nexport FLASK_APP=src/\n```\n\n5. Create the database by running \n```bash\nflask shell\n```\n\n6. In the interactive shell run the following\n```\nPython 3.11.1 (tags/v3.11.1:a7a450f, Dec  6 2022, 19:58:39) [MSC v.1934 64 bit (AMD64)] on win32\nApp: main\nInstance: C:\\Users\\jod35\\Documents\\coding\\JWT Auth flask\\instance\n\u003e\u003e\u003e from models import User\n\u003e\u003e\u003e db.create_all()\n```\n\n7. Finally run the application with\n```flask run```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjod35%2FJWT-Auth-for-Flask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjod35%2FJWT-Auth-for-Flask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjod35%2FJWT-Auth-for-Flask/lists"}