{"id":20827338,"url":"https://github.com/realpython/flask-jwt-auth","last_synced_at":"2025-04-06T10:15:11.622Z","repository":{"id":39969495,"uuid":"76334803","full_name":"realpython/flask-jwt-auth","owner":"realpython","description":"just testing some jwts","archived":false,"fork":false,"pushed_at":"2022-05-20T14:15:50.000Z","size":17,"stargazers_count":284,"open_issues_count":13,"forks_count":161,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-30T09:09:04.266Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/realpython.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-13T07:38:46.000Z","updated_at":"2025-03-11T09:56:26.000Z","dependencies_parsed_at":"2022-08-09T15:36:51.247Z","dependency_job_id":null,"html_url":"https://github.com/realpython/flask-jwt-auth","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fflask-jwt-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fflask-jwt-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fflask-jwt-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/realpython%2Fflask-jwt-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/realpython","download_url":"https://codeload.github.com/realpython/flask-jwt-auth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247464226,"owners_count":20942970,"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":[],"created_at":"2024-11-17T23:11:49.670Z","updated_at":"2025-04-06T10:15:11.570Z","avatar_url":"https://github.com/realpython.png","language":"Python","readme":"# Flask JWT Auth\n\n[![Build Status](https://travis-ci.org/realpython/flask-jwt-auth.svg?branch=master)](https://travis-ci.org/realpython/flask-jwt-auth)\n\n## Want to learn how to build this project?\n\nCheck out the [blog post](https://realpython.com/blog/python/token-based-authentication-with-flask/).\n\n## Want to use this project?\n\n### Basics\n\n1. Fork/Clone\n1. Activate a virtualenv\n1. Install the requirements\n\n### Set Environment Variables\n\nUpdate *project/server/config.py*, and then run:\n\n```sh\n$ export APP_SETTINGS=\"project.server.config.DevelopmentConfig\"\n```\n\nor\n\n```sh\n$ export APP_SETTINGS=\"project.server.config.ProductionConfig\"\n```\n\nSet a SECRET_KEY:\n\n```sh\n$ export SECRET_KEY=\"change_me\"\n```\n\n### Create DB\n\nCreate the databases in `psql`:\n\n```sh\n$ psql\n# create database flask_jwt_auth\n# create database flask_jwt_auth_test\n# \\q\n```\n\nCreate the tables and run the migrations:\n\n```sh\n$ python manage.py create_db\n$ python manage.py db init\n$ python manage.py db migrate\n```\n\n### Run the Application\n\n```sh\n$ python manage.py runserver\n```\n\nAccess the application at the address [http://localhost:5000/](http://localhost:5000/)\n\n\u003e Want to specify a different port?\n\n\u003e ```sh\n\u003e $ python manage.py runserver -h 0.0.0.0 -p 8080\n\u003e ```\n\n### Testing\n\nWithout coverage:\n\n```sh\n$ python manage.py test\n```\n\nWith coverage:\n\n```sh\n$ python manage.py cov\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealpython%2Fflask-jwt-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frealpython%2Fflask-jwt-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frealpython%2Fflask-jwt-auth/lists"}